Updated on 2026-08-14
This commit is contained in:
parent
ddb8de4964
commit
128f3b8d43
6 changed files with 75 additions and 32 deletions
|
|
@ -75,4 +75,23 @@ internal class DefaultSettingsRepository(
|
|||
value = isEnabled,
|
||||
)
|
||||
}
|
||||
|
||||
override suspend fun wasApplicationStopped(): Boolean {
|
||||
return appPreferencesStore.getSyncOrDefault(key = PreferencesKeys.WAS_APPLICATION_STOPPED_KEY, default = false)
|
||||
}
|
||||
|
||||
override suspend fun setWasApplicationStopped(value: Boolean) {
|
||||
appPreferencesStore.store(key = PreferencesKeys.WAS_APPLICATION_STOPPED_KEY, value = value)
|
||||
}
|
||||
|
||||
override suspend fun shouldOpenWelcomeScreenOnResume(): Boolean {
|
||||
return appPreferencesStore.getSyncOrDefault(
|
||||
key = PreferencesKeys.SHOULD_OPEN_WELCOME_ON_RESUME_KEY,
|
||||
default = false,
|
||||
)
|
||||
}
|
||||
|
||||
override suspend fun setShouldOpenWelcomeScreenOnResume(value: Boolean) {
|
||||
appPreferencesStore.store(key = PreferencesKeys.SHOULD_OPEN_WELCOME_ON_RESUME_KEY, value = value)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue