From 9f1e94851b134976b45e4e57d08fb5a1329d633e Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Mon, 1 Apr 2019 11:04:10 -0700 Subject: [PATCH] Fix flickering when receiving notification It was possible to see the full shade background for 1 frame when a notification arrives. Test: receive HUN on AOD, swipe to shade Fixes: 129691628 Change-Id: Ib24916fcee2de2800d23f082397e2fffc7c81354 --- .../notification/stack/NotificationStackScrollLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ce206816bf1da..bbb17c2f19ad7 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 @@ -399,7 +399,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd private final ViewOutlineProvider mOutlineProvider = new ViewOutlineProvider() { @Override public void getOutline(View view, Outline outline) { - if (mAmbientState.isDarkAtAll() && !mAmbientState.isFullyDark() || !mShowDarkShelf) { + if (mAmbientState.isDarkAtAll() || !mShowDarkShelf) { outline.setRoundRect(mBackgroundAnimationRect, mCornerRadius); } else { ViewOutlineProvider.BACKGROUND.getOutline(view, outline);