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

Commit 5cbd4f75 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't reset the keyguard if it's going away." into sc-v2-dev am: 8b988e72

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16469210

Change-Id: I1e1ab0db3d151b655f79c075834dcebc5890773a
parents 891c20d0 8b988e72
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1025,7 +1025,10 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable,
                if (!mExternallyEnabled) {
                    hideLocked();
                }
            } else if (mShowing) {
            } else if (mShowing && !mKeyguardStateController.isKeyguardGoingAway()) {
                // If we are going to sleep but the keyguard is showing (and will continue to be
                // showing, not in the process of going away) then reset its state. Otherwise, let
                // this fall through and explicitly re-lock the keyguard.
                mPendingReset = true;
            } else if (
                    (offReason == WindowManagerPolicyConstants.OFF_BECAUSE_OF_TIMEOUT