diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java index 889dfde3a66d7..9dc4ac952b1d1 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java @@ -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();