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

Commit 70d18f68 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Fix security timeout to respect lockscreen-disable-option" into gingerbread

parents 7242dbc7 ba7ff40f
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -587,14 +587,17 @@ public class LockPatternKeyguardView extends KeyguardViewBase {
        // report false
        mLockedButNotYetSecured = lockedButNotSecured;

        // Pattern unlock screen shows immediately. All others follow the
        // progression of Lock -> Unlock, so only Pattern lock requires this
        // state to be changed.
        if (!lockedButNotSecured && mMode != Mode.UnlockScreen
                && this.mLockPatternUtils.isLockPatternEnabled()) {
            updateScreen(Mode.UnlockScreen);
        } else
        if (lockedButNotSecured && mMode != Mode.LockScreen) {
        if (!lockedButNotSecured) {
            // At this point we are security locking the phone
            // So get the initialMode and set it, if it's different
            // to current mode.
            // getInitialMode() handles, if there should be an slider-
            // lock in front of security lock.
            Mode initialMode = getInitialMode();
            if (mMode != initialMode) {
                updateScreen(initialMode);
            }
        } else if (lockedButNotSecured && mMode != Mode.LockScreen) {
            // If lockedButNotSecured is enabled, frob the screen to lock
            updateScreen(Mode.LockScreen);
        } else {