summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2022-05-02 18:42:40 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-05-02 18:42:40 +0000
commitd70a79df352d43edead339badf4ee9c6546acf0a (patch)
tree2c3a87693cfc3b47ecf545918983ce5372e9206a
parent40c17d6cfd8cb9ea7803f77bf662c29a59d09097 (diff)
parentbaf80f6afaac9004c93267933adf911f781ab993 (diff)
Merge "Don't show the bouncer onPanelExpansionChanged when dozing + not pulsing" into tm-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java5
1 files changed, 4 insertions, 1 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 639be24ac46e..124647b81d4a 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
@@ -364,12 +364,15 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
|| mNotificationPanelViewController.isExpanding());
// We don't want to translate the bounce when:
+ // • device is dozing and not pulsing
// • Keyguard is occluded, because we're in a FLAG_SHOW_WHEN_LOCKED activity and need to
// conserve the original animation.
// • The user quickly taps on the display and we show "swipe up to unlock."
// • Keyguard will be dismissed by an action. a.k.a: FLAG_DISMISS_KEYGUARD_ACTIVITY
// • Full-screen user switcher is displayed.
- if (mNotificationPanelViewController.isUnlockHintRunning()) {
+ if (mDozing && !mPulsing) {
+ return;
+ } else if (mNotificationPanelViewController.isUnlockHintRunning()) {
mBouncer.setExpansion(KeyguardBouncer.EXPANSION_HIDDEN);
} else if (mStatusBarStateController.getState() == StatusBarState.SHADE_LOCKED
&& mKeyguardUpdateManager.isUdfpsEnrolled()) {