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

Commit 0e96b2df authored by András Kurucz's avatar András Kurucz
Browse files

[Flexiglass] Draw NSSL debug lines for positions driven by placeholders

Bug: 332574413
Test: turn on debug lines, see where they're drawn
Flag: com.android.systemui.scene_container
Change-Id: I31840268ffe5b1f36703d238b45013eb00857f9a
parent d233902b
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -833,6 +833,23 @@ public class NotificationStackScrollLayout
        int y = 0;
        drawDebugInfo(canvas, y, Color.RED, /* label= */ "y = " + y);

        if (SceneContainerFlag.isEnabled()) {
            y = (int) mScrollViewFields.getStackTop();
            drawDebugInfo(canvas, y, Color.RED, /* label= */ "getStackTop() = " + y);

            y = (int) mScrollViewFields.getStackBottom();
            drawDebugInfo(canvas, y, Color.MAGENTA, /* label= */ "getStackBottom() = " + y);

            y = (int) mScrollViewFields.getHeadsUpTop();
            drawDebugInfo(canvas, y, Color.GREEN, /* label= */ "getHeadsUpTop() = " + y);

            y += getTopHeadsUpHeight();
            drawDebugInfo(canvas, y, Color.BLUE,
                    /* label= */ "getHeadsUpTop() + getTopHeadsUpHeight() = " + y);

            return; // the rest of the fields are not important in Flexiglass
        }

        y = getTopPadding();
        drawDebugInfo(canvas, y, Color.RED, /* label= */ "getTopPadding() = " + y);