Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotating screen causes clearing of Chose Songs RecyclerView selection #2

Open
daxcurson opened this issue Aug 10, 2021 · 1 comment
Assignees

Comments

@daxcurson
Copy link
Owner

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...

@daxcurson daxcurson changed the title Rotating screen causes clearing of RecyclerView selection Rotating screen causes clearing of Chose Songs RecyclerView selection Aug 15, 2021
@daxcurson
Copy link
Owner Author

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.

@daxcurson daxcurson added this to the Initial Version milestone Aug 22, 2021
@daxcurson daxcurson self-assigned this Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant