You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the first "field test" of the player, some issues were detected, among these, that the RecyclerView selection is cleared when the screen is rotated. There must be a way to keep the state when the screen is rotated...
The text was updated successfully, but these errors were encountered:
daxcurson
changed the title
Rotating screen causes clearing of RecyclerView selection
Rotating screen causes clearing of Chose Songs RecyclerView selection
Aug 15, 2021
This is due to the entire MainActivity being re-created. Also, the Player loses its status, and although it receives media update messages, it loses the song media name and album art, because the MainActivity is not keeping the state of the player in e.g. a ViewModel. I should create a ViewModel for the player status.
After the first "field test" of the player, some issues were detected, among these, that the RecyclerView selection is cleared when the screen is rotated. There must be a way to keep the state when the screen is rotated...
The text was updated successfully, but these errors were encountered: