diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/BaseConfig.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/BaseConfig.kt index b82b86759..c82c2cbdd 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/BaseConfig.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/helpers/BaseConfig.kt @@ -218,10 +218,14 @@ open class BaseConfig(val context: Context) { prefs.edit().putBoolean(USE_ENGLISH, useEnglish).commit() } + val useEnglishFlow = ::useEnglish.asFlowNonNull() + var wasUseEnglishToggled: Boolean get() = prefs.getBoolean(WAS_USE_ENGLISH_TOGGLED, false) set(wasUseEnglishToggled) = prefs.edit().putBoolean(WAS_USE_ENGLISH_TOGGLED, wasUseEnglishToggled).apply() + val wasUseEnglishToggledFlow = ::wasUseEnglishToggled.asFlowNonNull() + var wasSharedThemeEverActivated: Boolean get() = prefs.getBoolean(WAS_SHARED_THEME_EVER_ACTIVATED, false) set(wasSharedThemeEverActivated) = prefs.edit().putBoolean(WAS_SHARED_THEME_EVER_ACTIVATED, wasSharedThemeEverActivated).apply()