From c8c4cf94c6357a8c16a8ddbf833c90f8e681b80d Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 8 Sep 2017 15:30:09 -0700 Subject: [PATCH] Fixed an issue where a notification could flicker Because of the fake shadow, the shelf could flicker in when the last notification was activated. Change-Id: I5fcf4dcec9fa73821402e6a3147922bbecb9a992 Fixes: 65022491 Test: click on last notification on keyguard, observe. --- .../android/systemui/statusbar/NotificationShelf.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java index 5eefe9ae07369..26a61b6d1e88f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java @@ -330,6 +330,15 @@ public class NotificationShelf extends ActivatableNotificationView implements } } + @Override + public void setFakeShadowIntensity(float shadowIntensity, float outlineAlpha, int shadowYEnd, + int outlineTranslation) { + if (!mHasItemsInStableShelf) { + shadowIntensity = 0.0f; + } + super.setFakeShadowIntensity(shadowIntensity, outlineAlpha, shadowYEnd, outlineTranslation); + } + /** * @return the icon amount how much this notification is in the shelf; */