diff options
| author | 2022-08-04 12:10:23 +0000 | |
|---|---|---|
| committer | 2022-08-04 12:10:23 +0000 | |
| commit | 801407daf0e98c241a2599379cdf2868c21cfb65 (patch) | |
| tree | 44a3d3d730c47fa4cb883d26cd5d8ccec5eb2a6d | |
| parent | ac22adf36c7518d38886f5f0728891e4fbcecef6 (diff) | |
| parent | f50462e680b3ac495163fde45dda03a697a08298 (diff) | |
Merge "Don't reset the keyguard on occlusion if it's going away." into tm-d1-dev am: f50462e680
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19509200
Change-Id: If252268e1122d28060d4d3ffeb7bd5247e81a781
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java index fdc344f01a0f..038beba03957 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java @@ -733,8 +733,10 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb } mNotificationShadeWindowController.setKeyguardOccluded(mOccluded); - // setDozing(false) will call reset once we stop dozing. - if (!mDozing) { + // setDozing(false) will call reset once we stop dozing. Also, if we're going away, there's + // no need to reset the keyguard views as we'll be gone shortly. Resetting now could cause + // unexpected visible behavior if the keyguard is still visible as we're animating unlocked. + if (!mDozing && !mKeyguardStateController.isKeyguardGoingAway()) { // If Keyguard is reshown, don't hide the bouncer as it might just have been requested // by a FLAG_DISMISS_KEYGUARD_ACTIVITY. reset(isOccluding /* hideBouncerWhenShowing*/); |