summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Lucas Dupin <dupin@google.com> 2019-07-24 16:36:14 -0700
committer Lucas Dupin <dupin@google.com> 2019-07-24 18:00:34 -0700
commit9b8e5e3875f1cb1081814f2ac94ac4ce0c02b24d (patch)
treec50caa5c41eeb19b6139bec8a15641f1f22fb440
parent66e67676750e85e2664936d78e45bdaa235c010b (diff)
Cancel show runnable when bouncer is hidden
Otherwise the bouncer might report "showing soon" and future show() calls will be aborted. Test: swipe up and down, wait for face, swipe up Test: tap on notification on bouncer Test: swipe up, unlock from bouncer Test: unlock on lock screen, swipe up to dismiss bouncer Fixes: 132846921 Change-Id: I22a1af2ef903b266ae8d8fcb9eb55f6cc11aeae2
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java
index 40085a48a58c..c4d346ccaefb 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java
@@ -207,14 +207,12 @@ public class KeyguardBouncer {
* @see #onFullyShown()
*/
private void onFullyHidden() {
- if (!mShowingSoon) {
- cancelShowRunnable();
- if (mRoot != null) {
- mRoot.setVisibility(View.INVISIBLE);
- }
- mFalsingManager.onBouncerHidden();
- DejankUtils.postAfterTraversal(mResetRunnable);
+ cancelShowRunnable();
+ if (mRoot != null) {
+ mRoot.setVisibility(View.INVISIBLE);
}
+ mFalsingManager.onBouncerHidden();
+ DejankUtils.postAfterTraversal(mResetRunnable);
}
private final Runnable mShowRunnable = new Runnable() {