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

Commit 153dc9d9 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Make the dump of the window hierarchy more readable

Activities weren't indented, making it hard to read.

Test: dumpsys window -a
Change-Id: Ibd39bd34ac128caf67eb07c932913a9078de9439
parent 422ec51d
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -687,11 +687,12 @@ class Task extends WindowContainer<AppWindowToken> {
        pw.println(doublePrefix + "mTempInsetBounds=" + mTempInsetBounds.toShortString());
        pw.println(doublePrefix + "mTempInsetBounds=" + mTempInsetBounds.toShortString());


        final String triplePrefix = doublePrefix + "  ";
        final String triplePrefix = doublePrefix + "  ";
        final String quadruplePrefix = triplePrefix + "  ";


        for (int i = mChildren.size() - 1; i >= 0; i--) {
        for (int i = mChildren.size() - 1; i >= 0; i--) {
            final AppWindowToken wtoken = mChildren.get(i);
            final AppWindowToken wtoken = mChildren.get(i);
            pw.println(triplePrefix + "Activity #" + i + " " + wtoken);
            pw.println(triplePrefix + "Activity #" + i + " " + wtoken);
            wtoken.dump(pw, triplePrefix, dumpAll);
            wtoken.dump(pw, quadruplePrefix, dumpAll);
        }
        }
    }
    }