From 4de87ec12dd2f6bf8a38791bb2ce1d57552c122c Mon Sep 17 00:00:00 2001 From: Jeff DeCew Date: Sat, 21 May 2022 11:24:23 +0000 Subject: [PATCH] Clean up the clipTopAmount to correct rounded corners for group summaries Bug: 230080345 Test: manual Change-Id: Id3ccdc576d5b786e901c9655955675fe0728d0d7 --- .../notification/row/ExpandableNotificationRow.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java index af9d751ae545e..0612fa04d4ba4 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java @@ -2104,6 +2104,13 @@ public class ExpandableNotificationRow extends ActivatableNotificationView public void applyLaunchAnimationParams(LaunchAnimationParameters params) { if (params == null) { + // `null` params indicates the animation is over, which means we can't access + // params.getParentStartClipTopAmount() which has the value we want to restore. + // Fortunately, only NotificationShelf actually uses these values for anything other + // than this launch animation, so we can restore the value to 0 and it's right for now. + if (mNotificationParent != null) { + mNotificationParent.setClipTopAmount(0); + } return; }