Fix hun-to-shade corner clipping
Bug: 189145086
Test: swipe down from hun to transition to shade => no weird clipping
Change-Id: I4ee72b63b1dd167d462b3f91db8c3788b7f4d528
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
index 889dfde..9dc4ac9 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 @@
&& 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();