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

Commit b9df312c authored by András Kurucz's avatar András Kurucz Committed by Android (Google) Code Review
Browse files

Merge "[flexiglass] Only update the NSSL's HUN bounds when they're changing" into main

parents c719eea3 750aed45
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1245,16 +1245,20 @@ public class NotificationStackScrollLayout
    @Override
    public void setHeadsUpTop(float headsUpTop) {
        if (SceneContainerFlag.isUnexpectedlyInLegacyMode()) return;
        if (mAmbientState.getHeadsUpTop() != headsUpTop) {
            mAmbientState.setHeadsUpTop(headsUpTop);
            requestChildrenUpdate();
        }
    }

    @Override
    public void setHeadsUpBottom(float headsUpBottom) {
        if (SceneContainerFlag.isUnexpectedlyInLegacyMode()) return;
        if (mAmbientState.getHeadsUpBottom() != headsUpBottom) {
            mAmbientState.setHeadsUpBottom(headsUpBottom);
            mStateAnimator.setHeadsUpAppearHeightBottom(Math.round(headsUpBottom));
        }
    }

    @Override
    public void closeGutsOnSceneTouch() {