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

Commit 3c2df2e6 authored by András Kurucz's avatar András Kurucz
Browse files

[Flexiglass] add assertInLegacyMode for unused NSSL methods

The responsibility of placing the Notifications is moving out of the
NSSL in Flexiglass, so these methods are not functional anymore.
They were called by the NPVC or the QuickSettingsControllerImpl.

Bug: 332574413
Test: show Notifications with Flexiglass on
Flag: com.android.systemui.scene_container
Change-Id: I451b94b82b634c12a54cf3c25b624c0d6fa97c37
parent 4791b8f7
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -1181,9 +1181,11 @@ public class NotificationStackScrollLayout
        updateAlgorithmLayoutMinHeight();
        updateOwnTranslationZ();

        if (!SceneContainerFlag.isEnabled()) {
            // Give The Algorithm information regarding the QS height so it can layout notifications
            // properly. Needed for some devices that grows notifications down-to-top
            mStackScrollAlgorithm.updateQSFrameTop(mQsHeader == null ? 0 : mQsHeader.getHeight());
        }

        // Once the layout has finished, we don't need to animate any scrolling clampings anymore.
        mAnimateStackYForContentHeightChange = false;
@@ -1811,6 +1813,7 @@ public class NotificationStackScrollLayout
    }

    public void setQsHeader(ViewGroup qsHeader) {
        SceneContainerFlag.assertInLegacyMode();
        mQsHeader = qsHeader;
    }

@@ -2662,6 +2665,7 @@ public class NotificationStackScrollLayout
    }

    public void setMaxTopPadding(int maxTopPadding) {
        SceneContainerFlag.assertInLegacyMode();
        mMaxTopPadding = maxTopPadding;
    }

@@ -2682,6 +2686,7 @@ public class NotificationStackScrollLayout
    }

    public float getTopPaddingOverflow() {
        SceneContainerFlag.assertInLegacyMode();
        return mTopPaddingOverflow;
    }

@@ -4641,6 +4646,7 @@ public class NotificationStackScrollLayout
    }

    public boolean isEmptyShadeViewVisible() {
        SceneContainerFlag.assertInLegacyMode();
        return mEmptyShadeView.isVisible();
    }

@@ -4919,6 +4925,7 @@ public class NotificationStackScrollLayout
    }

    public void setQsFullScreen(boolean qsFullScreen) {
        SceneContainerFlag.assertInLegacyMode();
        if (FooterViewRefactor.isEnabled()) {
            if (qsFullScreen == mQsFullScreen) {
                return;  // no change
@@ -5095,6 +5102,7 @@ public class NotificationStackScrollLayout
    }

    public void setExpandingVelocity(float expandingVelocity) {
        SceneContainerFlag.assertInLegacyMode();
        mAmbientState.setExpandingVelocity(expandingVelocity);
    }