Allow disabling secure screen when incognito mode is on

This commit is contained in:
arkon
2022-02-05 18:51:08 -05:00
parent 95b253db09
commit 299e52e877
7 changed files with 38 additions and 13 deletions

View File

@@ -67,4 +67,10 @@ object PreferenceValues {
PACKAGEINSTALLER,
SHIZUKU,
}
enum class SecureScreenMode {
ALWAYS,
INCOGNITO,
NEVER,
}
}

View File

@@ -57,7 +57,7 @@ class PreferencesHelper(val context: Context) {
fun lastAppUnlock() = flowPrefs.getLong("last_app_unlock", 0)
fun secureScreen() = flowPrefs.getBoolean("secure_screen", false)
fun secureScreen() = flowPrefs.getEnum("secure_screen_v2", Values.SecureScreenMode.INCOGNITO)
fun hideNotificationContent() = prefs.getBoolean(Keys.hideNotificationContent, false)