diff options
| author | 2017-08-09 17:11:06 +0000 | |
|---|---|---|
| committer | 2017-08-09 17:11:06 +0000 | |
| commit | bb9e8ccea1577582e8c2879d3ec05f244593b4a3 (patch) | |
| tree | 09edcfb549633cd7039ee8afd2ce51e3a695c502 | |
| parent | 8f48ffb72464f2e943e5dbd71103ad30f2b4075e (diff) | |
| parent | 94f8143129860b6ee952acf542b80b6e78afd1ca (diff) | |
Merge "Fix issue where keyguard wouldn't be dismissed" into oc-dr1-dev
am: 94f8143129
Change-Id: I6d7be5a8e2702d655548944c739f8d8d90451efe
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java | 5 |
1 files changed, 3 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 06cdfae7bc37..b4b859c2409c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java @@ -113,7 +113,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb // Since we won't get a setOccluded call we have to reset the view manually such that // the bouncer goes away. if (mOccluded) { - reset(false /* hideBouncerWhenShowing */); + reset(true /* hideBouncerWhenShowing */); } } }; @@ -316,6 +316,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb return; } } + boolean isOccluding = !mOccluded && occluded; mOccluded = occluded; if (mShowing) { mStatusBar.updateMediaMetaData(false, animate && !occluded); @@ -326,7 +327,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb if (!mDozing) { // If Keyguard is reshown, don't hide the bouncer as it might just have been requested // by a FLAG_DISMISS_KEYGUARD_ACTIVITY. - reset(false /* hideBouncerWhenShowing*/); + reset(isOccluding /* hideBouncerWhenShowing*/); } if (animate && !occluded && mShowing) { mStatusBar.animateKeyguardUnoccluding(); |