Add option to disable auto lock and add manual locking

This commit is contained in:
NerdNumber9
2018-03-14 18:39:01 -04:00
parent 0dd9e9e015
commit c48bebe0b2
11 changed files with 102 additions and 26 deletions

View File

@@ -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"

View File

@@ -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)