Commit 3405322
committed
refactor(study-options): add StudyOptionsViewModel with state management
- Extract business logic from StudyOptionsFragment into a dedicated
ViewModel.
- Introduces DeckStudyData, StudyOptionsState sealed interface,
and moves collection queries and deck operations (rebuild, empty, unbury)
into the ViewModel.
- refactor(study-options): wire StudyOptionsFragment to use ViewModel
- test(study-options): add unit tests for StudyOptionsViewModel1 parent ff8e408 commit 3405322
4 files changed
Lines changed: 708 additions & 216 deletions
File tree
- AnkiDroid/src
- main/java/com/ichi2/anki
- test/java/com/ichi2/anki
0 commit comments