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

HorizontalPicker resets on uiMode change #96

Open
nicolarevelant opened this issue Sep 25, 2024 · 0 comments
Open

HorizontalPicker resets on uiMode change #96

nicolarevelant opened this issue Sep 25, 2024 · 0 comments

Comments

@nicolarevelant
Copy link

Problem: when I perform this sequence of events the HorizontalPicker resets:

  1. With "Remember type and difficulty" app setting enabled
  2. Change difficulty and board size
  3. Switch between light and dark mode twice

Possible solution:

use rememberSaveable in HomeScreen.kt to save the current difficulty and the current type whose default values must be taken from the relative ViewModel that returns the default value or the last played value based on the "Remember type and difficulty" app setting

Screenshots:

Version:

1.5.0 (7)

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