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

Commit 0704ef7b authored by András Kurucz's avatar András Kurucz
Browse files

[Flexiglass] Update the new HeadsUpAnimator from the HUN placeholder

Follow the refactor of NotificationsHunSharedAnimationValues, and wire
in the new HeadsUpAnimator class with SceneContainer enabled.

Fixes: 400416268
Flag: com.android.systemui.notifications_hun_shared_animation_values
Test: SceneContainerFlag ON, NotificationsHunSharedAnimationValues OFF -> run HUN intro/outro

Change-Id: Iee64480bb5a2615a35370b67475d2ba368fb9d2b
parent 6748e174
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1290,7 +1290,9 @@ public class NotificationStackScrollLayout
    @Override
    public void setHeadsUpBottom(float headsUpBottom) {
        if (SceneContainerFlag.isUnexpectedlyInLegacyMode()) return;
        if (mAmbientState.getHeadsUpBottom() != headsUpBottom) {
        if (NotificationsHunSharedAnimationValues.isEnabled()) {
            mHeadsUpAnimator.setHeadsUpAppearHeightBottom(Math.round(headsUpBottom));
        } else if (mAmbientState.getHeadsUpBottom() != headsUpBottom) {
            mAmbientState.setHeadsUpBottom(headsUpBottom);
            mStateAnimator.setHeadsUpAppearHeightBottom(Math.round(headsUpBottom));
        }