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

TutorialBase resets on uiMode change #99

Open nicolarevelant opened 2 months ago

nicolarevelant commented 2 months ago
  1. Touch "More" on bottom bar
  2. Touch "Learn"
  3. Touch one of the 4 tutorials
  4. Go to the next page (second, third, and fourth tutorial only)
  5. Check the checkbox and click the 2 sudoku boards to select a cell (first tutorial only)
  6. Switch between light and dark mode twice

Possible solution:

/app/src/main/java/com/kaajjo/libresudoku/ui/learn/learnsudoku/LearnSudokuRules.kt: 35, 36, 156 use rememberSaveable instead of remember /app/src/main/java/com/kaajjo/libresudoku/ui/learn/learnsudoku/LearnBasic.kt:71 use rememberSaveable instead of remember /app/src/main/java/com/kaajjo/libresudoku/ui/learn/learnsudoku/LearnNakedPairs.kt:71 use rememberSaveable instead of remember /app/src/main/java/com/kaajjo/libresudoku/ui/learn/learnsudoku/LearnHiddenPairs.kt:73 use rememberSaveable instead of remember

Screenshots:


Version:

1.5.0 (7)