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

Commit 8a4a2efa authored by Evan Rosky's avatar Evan Rosky Committed by Android (Google) Code Review
Browse files

Revert "Keep z-order of tasks when merged into recents transition"

This reverts commit 5742d6b0.

Reason for revert: Messes up the order for restoration at end.

Change-Id: I391aa73da259652b4200040bcecb8fd1cf4a7106
parent 5742d6b0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -581,9 +581,7 @@ public class RecentsTransitionHandler implements Transitions.TransitionHandler {
            final TransitionUtil.LeafTaskFilter leafTaskFilter =
                    new TransitionUtil.LeafTaskFilter();
            boolean hasTaskChange = false;
            // Walk backwards so that higher z-order changes are recorded *last* in the assorted
            // task lists. This way, when the are added, the on-top tasks are drawn on top.
            for (int i = info.getChanges().size() - 1; i >= 0; --i) {
            for (int i = 0; i < info.getChanges().size(); ++i) {
                final TransitionInfo.Change change = info.getChanges().get(i);
                final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo();
                if (taskInfo != null