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

Commit 1e54dfa6 authored by Luca Zuccarini's avatar Luca Zuccarini
Browse files

Correctly animate the notification radius during launch.

Bug: 396054791
Flag: com.android.systemui.notifications_launch_radius
Test: manual (with recordings, see bug)
Change-Id: I76179697f1b5750e288273c55b596d4c806bc7e6
parent 32e4e11e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2016,3 +2016,13 @@ flag {
    description: "Enables the clock fidget animation"
    bug: "364664389"
}

flag {
    name: "notifications_launch_radius"
    namespace: "systemui"
    description: "Fixes a discrepancy in corner radius between expanding notification and opening window during launch animations."
    bug: "396054791"
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -2727,6 +2727,11 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        invalidateOutline();

        mBackgroundNormal.setExpandAnimationSize(params.getWidth(), actualHeight);

        if (Flags.notificationsLaunchRadius()) {
            mBackgroundNormal.setRadius(params.getTopCornerRadius(),
                    params.getBottomCornerRadius());
        }
    }

    public void setExpandAnimationRunning(boolean expandAnimationRunning) {