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

Commit 5fedd81a authored by Selim Cinek's avatar Selim Cinek
Browse files

Not rendering background when bypassing

There's not need to render the background when bypassing,
and it lead to ugly animation issues with multiple
notifications.

Bug: 134543453
Test: atest SystemUITests
Change-Id: I8db745c10f3de8cf6943bd2f0607872509bfbdee
parent 60ee7fde
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -837,7 +837,13 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
                break;
            }
        }
        if (!mAmbientState.isDozing() || anySectionHasVisibleChild) {
        boolean shouldDrawBackground;
        if (mKeyguardBypassController.getBypassEnabled() && onKeyguard()) {
            shouldDrawBackground = isPulseExpanding();
        } else {
            shouldDrawBackground = !mAmbientState.isDozing() || anySectionHasVisibleChild;
        }
        if (shouldDrawBackground) {
            drawBackgroundRects(canvas, left, right, top, backgroundTopAnimationOffset);
        }