Add secure screen setting

This commit is contained in:
arkon
2020-02-22 13:30:36 -05:00
parent b06f1c81bc
commit 61d2107e9c
10 changed files with 49 additions and 15 deletions
@@ -117,10 +117,10 @@ class SettingsGeneralController : SettingsController() {
summary = "%s"
}
if (BiometricManager.from(context).canAuthenticate() == BiometricManager.BIOMETRIC_SUCCESS) {
preferenceCategory {
titleRes = R.string.pref_category_security
preferenceCategory {
titleRes = R.string.pref_category_security
if (BiometricManager.from(context).canAuthenticate() == BiometricManager.BIOMETRIC_SUCCESS) {
switchPreference {
key = Keys.useBiometricLock
titleRes = R.string.lock_with_biometrics
@@ -145,6 +145,12 @@ class SettingsGeneralController : SettingsController() {
.subscribeUntilDestroy { isVisible = it }
}
}
switchPreference {
key = Keys.secureScreen
titleRes = R.string.secure_screen
defaultValue = false
}
}
}