Fix hun-to-shade corner clipping

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

Change-Id: I4ee72b63b1dd167d462b3f91db8c3788b7f4d528
This commit is contained in:
Lyn Han
2021-05-26 12:39:03 -05:00
parent 79e39e8e77
commit 1988f9e0d3

View File

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