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

Commit e4f472cd authored by 0's avatar 0
Browse files

[flexiglass] Add legacy assertion to NSSL.setOverScrollAmount

Bug: 347740893
Test: no crashes during stack scroll CUJs with flexiglass enabled
Flag: com.android.systemui.scene_container
Change-Id: Id484362a712b39addfd73b7ccf7304aa2f0a8bd1
parent 42864cfb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2307,6 +2307,7 @@ public class NotificationStackScrollLayout

    private void setOverScrollAmountInternal(float amount, boolean onTop, boolean animate,
                                             boolean isRubberbanded) {
        SceneContainerFlag.assertInLegacyMode();
        amount = Math.max(0, amount);
        if (animate) {
            mStateAnimator.animateOverScrollToAmount(amount, onTop, isRubberbanded);