From bd6c294f206565f18b94f32e7e4e2839fe94b377 Mon Sep 17 00:00:00 2001 From: syt0r Date: Tue, 16 Jul 2024 17:30:07 +0300 Subject: [PATCH] Sort vocab practice types, make flashcard practice default --- .../DefaultPracticeUserPreferencesRepository.kt | 2 +- .../screen/practice_vocab/data/VocabPracticeScreenData.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/commonMain/kotlin/ua/syt0r/kanji/core/user_data/preferences/DefaultPracticeUserPreferencesRepository.kt b/core/src/commonMain/kotlin/ua/syt0r/kanji/core/user_data/preferences/DefaultPracticeUserPreferencesRepository.kt index abc2723b..9e557e09 100644 --- a/core/src/commonMain/kotlin/ua/syt0r/kanji/core/user_data/preferences/DefaultPracticeUserPreferencesRepository.kt +++ b/core/src/commonMain/kotlin/ua/syt0r/kanji/core/user_data/preferences/DefaultPracticeUserPreferencesRepository.kt @@ -86,7 +86,7 @@ class DefaultPracticeUserPreferencesRepository( registerProperty { createEnumProperty( key = "vocab_practice_type", - initialValueProvider = { PreferencesVocabPracticeType.ReadingPicker } + initialValueProvider = { PreferencesVocabPracticeType.Flashcard } ) } diff --git a/core/src/commonMain/kotlin/ua/syt0r/kanji/presentation/screen/main/screen/practice_vocab/data/VocabPracticeScreenData.kt b/core/src/commonMain/kotlin/ua/syt0r/kanji/presentation/screen/main/screen/practice_vocab/data/VocabPracticeScreenData.kt index e642db31..0f84b503 100644 --- a/core/src/commonMain/kotlin/ua/syt0r/kanji/presentation/screen/main/screen/practice_vocab/data/VocabPracticeScreenData.kt +++ b/core/src/commonMain/kotlin/ua/syt0r/kanji/presentation/screen/main/screen/practice_vocab/data/VocabPracticeScreenData.kt @@ -18,14 +18,14 @@ enum class VocabPracticeType( override val titleResolver: StringResolveScope ) : DisplayableEnum { - ReadingPicker( - preferencesType = PreferencesVocabPracticeType.ReadingPicker, - titleResolver = { vocabPractice.practiceTypeReadingPicker } - ), Flashcard( preferencesType = PreferencesVocabPracticeType.Flashcard, titleResolver = { vocabPractice.practiceTypeFlashcard } ), + ReadingPicker( + preferencesType = PreferencesVocabPracticeType.ReadingPicker, + titleResolver = { vocabPractice.practiceTypeReadingPicker } + ), Writing( preferencesType = PreferencesVocabPracticeType.Writing, titleResolver = { vocabPractice.practiceTypeWriting }