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

Commit 951c4f49 authored by András Kurucz's avatar András Kurucz
Browse files

[Flexiglass] Verify isBelowLastNotification unused

Add an assertion to NSSL.isBelowLastNotification, because it was only used for the empty space logic.

Bug: 332574413
Test: verify that the new assertion is passing
Flag: com.android.systemui.scene_container
Change-Id: Ia513c4b320383e9a393210ea266d61c2458b8b01
parent eeb9d1a2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4840,6 +4840,7 @@ public class NotificationStackScrollLayout
    }

    public boolean isBelowLastNotification(float touchX, float touchY) {
        SceneContainerFlag.assertInLegacyMode();
        int childCount = getChildCount();
        for (int i = childCount - 1; i >= 0; i--) {
            ExpandableView child = getChildAtIndex(i);
+1 −0
Original line number Diff line number Diff line
@@ -1235,6 +1235,7 @@ public class NotificationStackScrollLayoutController implements Dumpable {
    }

    public boolean isBelowLastNotification(float x, float y) {
        SceneContainerFlag.assertInLegacyMode();
        return mView.isBelowLastNotification(x, y);
    }