From e4f472cde7464cbf7dfcd5838c1061ad63bcc1a4 Mon Sep 17 00:00:00 2001 From: 0 Date: Tue, 27 Aug 2024 12:45:59 -0700 Subject: [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 --- .../statusbar/notification/stack/NotificationStackScrollLayout.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index d0c51bc28126..e6e694d2113d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -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); -- cgit v1.2.3-59-g8ed1b