Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f1e9485 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

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
parent 65e18e43
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -399,7 +399,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
    private final ViewOutlineProvider mOutlineProvider = new ViewOutlineProvider() {
    private final ViewOutlineProvider mOutlineProvider = new ViewOutlineProvider() {
        @Override
        @Override
        public void getOutline(View view, Outline outline) {
        public void getOutline(View view, Outline outline) {
            if (mAmbientState.isDarkAtAll() && !mAmbientState.isFullyDark() || !mShowDarkShelf) {
            if (mAmbientState.isDarkAtAll() || !mShowDarkShelf) {
                outline.setRoundRect(mBackgroundAnimationRect, mCornerRadius);
                outline.setRoundRect(mBackgroundAnimationRect, mCornerRadius);
            } else {
            } else {
                ViewOutlineProvider.BACKGROUND.getOutline(view, outline);
                ViewOutlineProvider.BACKGROUND.getOutline(view, outline);