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

Commit 4d7cb427 authored by András Kurucz's avatar András Kurucz
Browse files

[Flexiglass] Verify that NSSL.getTopPadding() is not used

Add an assertion for NSSL.getTopPadding() after all of its users are migrated, or disabled.

Fixes: 332574413
Test: verify that the new assertion passes with flexiglass
Flag: com.android.systemui.scene_container
Change-Id: I75bd6bcc14a4edc8e7f2ba341262e79ea682dad4
parent 34e358db
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -1401,13 +1401,9 @@ public class NotificationStackScrollLayout
    }

    public int getTopPadding() {
        // TODO(b/332574413) replace all usages of getTopPadding()
        if (SceneContainerFlag.isEnabled()) {
            return (int) mAmbientState.getStackTop();
        } else {
        SceneContainerFlag.assertInLegacyMode();
        return mAmbientState.getTopPadding();
    }
    }

    private void onTopPaddingChanged(boolean animate) {
        boolean shouldAnimate = animate || mAnimateNextTopPaddingChange;