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

Commit 0c9a5483 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make the activities dumped in top-to-bottom order"

parents a9a54dc0 eb1431f5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3594,7 +3594,10 @@ class ActivityStack extends WindowContainer<WindowContainer> implements BoundsAn
            pw.println(prefix + "* " + task);
            task.dump(pw, prefix + "  ");
            final ArrayList<ActivityRecord> activities = new ArrayList<>();
            forAllActivities((Consumer<ActivityRecord>) activities::add);
            // Add activities by traversing the hierarchy from bottom to top, since activities
            // are dumped in reverse order in {@link ActivityStackSupervisor#dumpHistoryList()}.
            forAllActivities((Consumer<ActivityRecord>) activities::add,
                    false /* traverseTopToBottom */);
            dumpHistoryList(fd, pw, activities, prefix, "Hist", true, !dumpAll, dumpClient,
                    dumpPackage, false, null, task);
        });