Merge "Don't reset the keyguard if it's going away." into sc-v2-dev am: 8b988e7218 am: 5cbd4f757c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16469210 Change-Id: Ibfbe90beca385dcef9ed5c9ed865edbafd1b1657
This commit is contained in:
@@ -1033,7 +1033,10 @@ public class KeyguardViewMediator extends CoreStartable 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
|
||||
|
||||
Reference in New Issue
Block a user