Add confirm exist setting (closes #2615)

This commit is contained in:
arkon
2020-04-18 20:05:31 -04:00
parent 8a243ffb57
commit 321a4b24b9
5 changed files with 39 additions and 0 deletions

View File

@@ -11,6 +11,8 @@ object PreferenceKeys {
const val themeDark = "pref_theme_dark_key"
const val confirmExit = "pref_confirm_exit"
const val rotation = "pref_rotation_type_key"
const val enableTransitions = "pref_enable_transitions_key"

View File

@@ -54,6 +54,8 @@ class PreferencesHelper(val context: Context) {
fun startScreen() = prefs.getInt(Keys.startScreen, 1)
fun confirmExit() = prefs.getBoolean(Keys.confirmExit, false)
fun useBiometricLock() = flowPrefs.getBoolean(Keys.useBiometricLock, false)
fun lockAppAfter() = flowPrefs.getInt(Keys.lockAppAfter, 0)