Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4de87ec1 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Clean up the clipTopAmount to correct rounded corners for group summaries

Bug: 230080345
Test: manual
Change-Id: Id3ccdc576d5b786e901c9655955675fe0728d0d7
parent 34b4ebd8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;
        }