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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user