Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ohassine committed Nov 7, 2023
1 parent 023b5ba commit a0c6e38
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class GlobalDataStore @Inject constructor(@ApplicationContext private val contex
private val IS_LOGGING_ENABLED = booleanPreferencesKey("is_logging_enabled")
private val IS_ENCRYPTED_PROTEUS_STORAGE_ENABLED =
booleanPreferencesKey("is_encrypted_proteus_storage_enabled")
private val IS_APP_LOCKED_BY_USER = booleanPreferencesKey("is_app_locked_by_user")
private val APP_LOCK_PASSCODE = stringPreferencesKey("app_lock_passcode")
private val TEAM_APP_LOCK_PASSCODE = stringPreferencesKey("team_app_lock_passcode")
val APP_THEME_OPTION = stringPreferencesKey("app_theme_option")
Expand Down Expand Up @@ -243,9 +242,6 @@ class GlobalDataStore @Inject constructor(@ApplicationContext private val contex
setAppLockPasscode(passcode, key)
}

Check warning on line 243 in app/src/main/kotlin/com/wire/android/datastore/GlobalDataStore.kt

View check run for this annotation

Codecov / codecov/patch

app/src/main/kotlin/com/wire/android/datastore/GlobalDataStore.kt#L242-L243

Added lines #L242 - L243 were not covered by tests

fun isAppLockedByUserFlow(): Flow<Boolean> =
getBooleanPreference(IS_APP_LOCKED_BY_USER, false)

suspend fun setThemeOption(option: ThemeOption) {
context.dataStore.edit { it[APP_THEME_OPTION] = option.toString() }
}
Expand Down

0 comments on commit a0c6e38

Please sign in to comment.