summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2019-06-26 19:34:24 -0700
committer Selim Cinek <cinek@google.com> 2019-06-27 18:40:49 -0700
commit5fedd81ae6b46de22f702bac2080b846256c7f6c (patch)
treed1d998d19f5d6f1eb12e3ba2efc30d643dc1485e
parent60ee7fde5796b7a023546f99ea99301a9b6a58f8 (diff)
Not rendering background when bypassing
There's not need to render the background when bypassing, and it lead to ugly animation issues with multiple notifications. Bug: 134543453 Test: atest SystemUITests Change-Id: I8db745c10f3de8cf6943bd2f0607872509bfbdee
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
index e2cb8d4517ff..192373f5a4c5 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java
@@ -837,7 +837,13 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
break;
}
}
- if (!mAmbientState.isDozing() || anySectionHasVisibleChild) {
+ boolean shouldDrawBackground;
+ if (mKeyguardBypassController.getBypassEnabled() && onKeyguard()) {
+ shouldDrawBackground = isPulseExpanding();
+ } else {
+ shouldDrawBackground = !mAmbientState.isDozing() || anySectionHasVisibleChild;
+ }
+ if (shouldDrawBackground) {
drawBackgroundRects(canvas, left, right, top, backgroundTopAnimationOffset);
}