mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 05:27:28 +01:00
Allow disabling secure screen when incognito mode is on
This commit is contained in:
@@ -67,4 +67,10 @@ object PreferenceValues {
|
||||
PACKAGEINSTALLER,
|
||||
SHIZUKU,
|
||||
}
|
||||
|
||||
enum class SecureScreenMode {
|
||||
ALWAYS,
|
||||
INCOGNITO,
|
||||
NEVER,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user