kaajjo / LibreSudoku

LibreSudoku - Sudoku app for android built with Kotlin + Jetpack Compose + Material3
GNU General Public License v3.0
412 stars 31 forks source link

Board resets on uiMode #102

Open nicolarevelant opened 2 months ago

nicolarevelant commented 2 months ago

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

  1. Touch More (bottom bar)
  2. Touch "Settings"
  3. Touch "Sudoku board theme"
  4. Touch a cell on the visible sudoku board
  5. Switch between light and dark mode twice

Possible solution:

/app/src/main/java/com/kaajjo/libresudoku/ui/settings/boardtheme/BoardThemePage.kt:219 use rememberSaveable instead of remember

Screenshots:

Version:

1.5.0 (7)