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

Commit 959ab56b authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Fix invalid Keyguard state with encrypted devices." into lmp-preview-dev

parents aaa58d1c b9d60791
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -906,6 +906,7 @@ public class KeyguardViewMediator extends SystemUI {
        if (mLockPatternUtils.checkVoldPassword()) {
            if (DEBUG) Log.d(TAG, "Not showing lock screen since just decrypted");
            // Without this, settings is not enabled until the lock screen first appears
            mShowing = false;
            hideLocked();
            return;
        }
@@ -1219,9 +1220,17 @@ public class KeyguardViewMediator extends SystemUI {
            if (DEBUG) Log.d(TAG, "handleHide");
            try {

                if (mShowing) {

                    // Don't actually hide the Keyguard at the moment, wait for window manager until
                    // it tells us it's safe to do so with startKeyguardExitAnimation.
                    mWM.keyguardGoingAway();
                } else {

                    // Don't try to rely on WindowManager - if Keyguard wasn't showing, window
                    // manager won't start the exit animation.
                    handleStartKeyguardExitAnimation(0, 0);
                }
            } catch (RemoteException e) {
                Log.e(TAG, "Error while calling WindowManager", e);
            }