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

View File

@@ -111,6 +111,8 @@ object PreferenceKeys {
const val lastAppUnlock = "last_app_unlock"
const val secureScreen = "secure_screen"
const val downloadNew = "download_new"
const val downloadNewCategories = "download_new_categories"

View File

@@ -58,6 +58,8 @@ class PreferencesHelper(val context: Context) {
fun lastAppUnlock() = rxPrefs.getLong(Keys.lastAppUnlock, 0)
fun secureScreen() = rxPrefs.getBoolean(Keys.secureScreen, false)
fun clear() = prefs.edit().clear().apply()
fun themeMode() = rxPrefs.getString(Keys.themeMode, Values.THEME_MODE_SYSTEM)