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
This commit is contained in:
Lucas Dupin
2019-04-01 11:04:10 -07:00
parent 65e18e43a2
commit 9f1e94851b

View File

@@ -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);