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

Commit 1988f9e0 authored by Lyn Han's avatar Lyn Han
Browse files

Fix hun-to-shade corner clipping

Bug: 189145086
Test: swipe down from hun to transition to shade => no weird clipping

Change-Id: I4ee72b63b1dd167d462b3f91db8c3788b7f4d528
parent 79e39e8e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -358,9 +358,13 @@ public class NotificationShelf extends ActivatableNotificationView implements
                && anv instanceof ExpandableNotificationRow
                && ((ExpandableNotificationRow) anv).isHeadsUp();

        final boolean isHunGoingToShade = mAmbientState.isShadeExpanded()
                && anv == mAmbientState.getTrackedHeadsUpRow();

        final boolean shouldUpdateCornerRoundness = viewStart < shelfStart
                && !mHostLayoutController.isViewAffectedBySwipe(anv)
                && !isUnlockedHeadsUp
                && !isHunGoingToShade
                && !mAmbientState.isPulsing()
                && !mAmbientState.isDozing();