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

Commit e8b85fd4 authored by Craig Mautner's avatar Craig Mautner
Browse files

Fix dumpsys display apptoken ordering.

Ordering was bottom up stack ordering but top down apptoken ordering
within each stack. This makes it top down ordering throughout the
dump.

Change-Id: Ie15dbbfc3b21b8df101a0803e556094142dc408e
parent a9a550dd
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -376,10 +376,9 @@ class DisplayContent {
            stack.dump(prefix + "  ", pw);
        }
        pw.println();
        pw.println("  Application tokens in bottom up Z order:");
        pw.println("  Application tokens in top down Z order:");
        int ndx = 0;
        final int numStacks = mStacks.size();
        for (int stackNdx = 0; stackNdx < numStacks; ++stackNdx) {
        for (int stackNdx = mStacks.size() - 1; stackNdx >= 0; --stackNdx) {
            ArrayList<Task> tasks = mStacks.get(stackNdx).getTasks();
            for (int taskNdx = tasks.size() - 1; taskNdx >= 0; --taskNdx) {
                AppTokenList tokens = tasks.get(taskNdx).mAppTokens;