mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-17 22:47:29 +01:00
Add option to disable auto lock and add manual locking
This commit is contained in:
@@ -121,6 +121,16 @@ object PreferenceKeys {
|
||||
|
||||
fun trackToken(syncId: Int) = "track_token_$syncId"
|
||||
|
||||
const val eh_lock_hash = "lock_hash"
|
||||
|
||||
const val eh_lock_salt = "lock_salt"
|
||||
|
||||
const val eh_lock_length = "lock_length"
|
||||
|
||||
const val eh_lock_finger = "lock_finger"
|
||||
|
||||
const val eh_lock_manually = "eh_lock_manually"
|
||||
|
||||
const val eh_nh_useHighQualityThumbs = "eh_nh_hq_thumbs"
|
||||
|
||||
const val eh_showSyncIntro = "eh_show_sync_intro"
|
||||
|
||||
@@ -203,13 +203,15 @@ class PreferencesHelper(val context: Context) {
|
||||
fun eh_sessionCookie() = rxPrefs.getString(Keys.eh_sessionCookie, "")
|
||||
|
||||
//Lock
|
||||
fun lockHash() = rxPrefs.getString("lock_hash", null)
|
||||
fun eh_lockHash() = rxPrefs.getString(Keys.eh_lock_hash, null)
|
||||
|
||||
fun lockSalt() = rxPrefs.getString("lock_salt", null)
|
||||
fun eh_lockSalt() = rxPrefs.getString(Keys.eh_lock_salt, null)
|
||||
|
||||
fun lockLength() = rxPrefs.getInteger("lock_length", -1)
|
||||
fun eh_lockLength() = rxPrefs.getInteger(Keys.eh_lock_length, -1)
|
||||
|
||||
fun lockUseFingerprint() = rxPrefs.getBoolean("lock_finger", false)
|
||||
fun eh_lockUseFingerprint() = rxPrefs.getBoolean(Keys.eh_lock_finger, false)
|
||||
|
||||
fun eh_lockManually() = rxPrefs.getBoolean(Keys.eh_lock_manually, false)
|
||||
|
||||
fun eh_nh_useHighQualityThumbs() = rxPrefs.getBoolean(Keys.eh_nh_useHighQualityThumbs, false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user