summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2018-03-23 04:57:21 +0000
committer android-build-merger <android-build-merger@google.com> 2018-03-23 04:57:21 +0000
commitde932bdf90350379029ff3fc5b44b2245dc2b44e (patch)
tree1d6e1fece747aecffa8a7ade303ad30f7cfabf33
parentb16aa93d895d41eb212de9430030f17f42a3c6cb (diff)
parentd4115f501dd1cc23546dd53df1c4393bfe43a419 (diff)
Merge "Fixed an issue where notifications were invisible on AOD" into pi-dev
am: d4115f501d Change-Id: I9dfa218bc30003581e8488d7b9d72bb192a19547
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
index aecf5fb89d85..41c755991403 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
@@ -177,7 +177,7 @@ public class NotificationShelf extends ActivatableNotificationView implements
mShelfState.yTranslation = Math.max(Math.min(viewEnd, maxShelfEnd) - mShelfState.height,
getFullyClosedTranslation());
mShelfState.zTranslation = ambientState.getBaseZHeight();
- if (mAmbientState.isDark()) {
+ if (mAmbientState.isDark() && !mAmbientState.hasPulsingNotifications()) {
mShelfState.yTranslation = mAmbientState.getDarkTopPadding();
}
float openedAmount = (mShelfState.yTranslation - getFullyClosedTranslation())