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

Commit ecc1b58d authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

[flexiglass] Remove mScrollable usages

Scrolling in the NSSL is now handled in flexiglass, and this was for the
most part replaced by scrollingEnabled.

Bug: 360091533
Bug: 360106096
Test: manually tested that things look good when scrolling, including
when a notification is pinned
Flag: com.android.systemui.scene_container

Change-Id: I11d4201f1064e18a998c27c001760be2400a02c7
parent 8755f8ea
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2629,6 +2629,9 @@ public class NotificationStackScrollLayout
    }

    private void updateScrollability() {
        if (SceneContainerFlag.isEnabled()) {
            return;
        }
        boolean scrollable = !mQsFullScreen && getScrollRange() > 0;
        if (scrollable != mScrollable) {
            mScrollable = scrollable;
@@ -2638,6 +2641,7 @@ public class NotificationStackScrollLayout
    }

    private void updateForwardAndBackwardScrollability() {
        SceneContainerFlag.assertInLegacyMode();
        boolean forwardScrollable = mScrollable && !mScrollAdapter.isScrolledToBottom();
        boolean backwardsScrollable = mScrollable && !mScrollAdapter.isScrolledToTop();
        boolean changed = forwardScrollable != mForwardScrollable
@@ -5147,6 +5151,7 @@ public class NotificationStackScrollLayout
    }

    boolean isQsFullScreen() {
        SceneContainerFlag.assertInLegacyMode();
        return mQsFullScreen;
    }

@@ -5194,6 +5199,7 @@ public class NotificationStackScrollLayout
    }

    private void updateOnScrollChange() {
        SceneContainerFlag.assertInLegacyMode();
        if (mScrollListener != null) {
            mScrollListener.accept(mOwnScrollY);
        }