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

Commit ba3da852 authored by András Kurucz's avatar András Kurucz
Browse files

Dump ENR custom outlines

Applying a custom outline to the notification row would be one more way
to get to the "empty space in shade" state, and yet it is not included
in the bugreports. We use this clipping for intro/outro animations.

Bug: 369608449
Test: dumpsysui NotificationStackScrollLayout
Flag: EXEMPT changing dumps only

Change-Id: I6a0f75922383bce1dd35692208471cba75ae69f3
parent 95ed338a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3879,7 +3879,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
                dumpHeights(pw);
            }
            showingLayout.dump(pw, args);

            dumpCustomOutline(pw, args);
            if (getViewState() != null) {
                getViewState().dump(pw, args);
                pw.println();
+9 −3
Original line number Diff line number Diff line
@@ -365,11 +365,17 @@ public abstract class ExpandableOutlineView extends ExpandableView {
        DumpUtilsKt.withIncreasedIndent(pw, () -> {
            pw.println(getRoundableState().debugString());
            if (DUMP_VERBOSE) {
                pw.println("mCustomOutline: " + mCustomOutline + " mOutlineRect: " + mOutlineRect);
                pw.println("mOutlineAlpha: " + mOutlineAlpha);
                pw.println("mAlwaysRoundBothCorners: " + mAlwaysRoundBothCorners);
                dumpCustomOutline(pw, args);
            }
        });
    }

    protected void dumpCustomOutline(IndentingPrintWriter pw, String[] args) {
        pw.print("CustomOutline: ");
        pw.print("mCustomOutline", mCustomOutline);
        pw.print("mOutlineRect", mOutlineRect);
        pw.print("mOutlineAlpha", mOutlineAlpha);
        pw.print("mAlwaysRoundBothCorners", mAlwaysRoundBothCorners);
        pw.println();
    }
}