Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d23319d2 authored by Nico Kaiser's avatar Nico Kaiser
Browse files

Make 'Power button instantly locks' toggle work (1/2 framework)

If your device is secure (uses password/PIN/pattern) then the AOSP timeout settings are used.
But the 'Power button instantly locks' toggle is ignored. 'lockImmediately' in KeyguardViewMediator
is always set to true. This fix together with a settings fix switches to the the AOSP handling of this
setting.

Change-Id: Ic7ce8003f1b16a4feaa60ec81082c7ddfce23105
parent f305d1a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -363,7 +363,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
            if (mLockPatternUtils.isSecure()) {
                // Lock immediately based on setting if secure (user has a pin/pattern/password)
                // This is retained as-is to ensue AOSP security integrity is maintained
                lockImmediately = true;
                lockImmediately = mLockPatternUtils.getPowerButtonInstantlyLocks();
            } else {
                // Unless a separate slide lock timeout is enabled, this "locks" the device when
                // not secure to provide easy access to the camera while preventing unwanted input