mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-13 04:28:55 +01:00
Fix app locking even if app lock is disabled
Hide fingerprint view if fingerprint is disabled
This commit is contained in:
@@ -158,15 +158,16 @@ class MainActivity : BaseActivity() {
|
||||
// --> EH
|
||||
//Hook long press hamburger menu to lock
|
||||
getToolbarNavigationIcon(toolbar)?.setOnLongClickListener {
|
||||
doLock(true)
|
||||
vibrate(50) // Notify user of lock
|
||||
true
|
||||
if(lockEnabled(preferences)) {
|
||||
doLock(true)
|
||||
vibrate(50) // Notify user of lock
|
||||
true
|
||||
} else false
|
||||
}
|
||||
|
||||
//Show lock
|
||||
if (savedInstanceState == null) {
|
||||
val lockEnabled = lockEnabled(preferences)
|
||||
if (lockEnabled) {
|
||||
if (lockEnabled(preferences)) {
|
||||
//Special case first lock
|
||||
doLock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user