Merge "Fix hun-to-shade corner clipping" into sc-dev

This commit is contained in:
Lyn Han
2021-05-26 21:33:15 +00:00
committed by Android (Google) Code Review

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