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

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

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

parents c1605ef4 5742d6b0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -581,7 +581,9 @@ public class RecentsTransitionHandler implements Transitions.TransitionHandler {
            final TransitionUtil.LeafTaskFilter leafTaskFilter =
                    new TransitionUtil.LeafTaskFilter();
            boolean hasTaskChange = false;
            for (int i = 0; i < info.getChanges().size(); ++i) {
            // 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) {
                final TransitionInfo.Change change = info.getChanges().get(i);
                final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo();
                if (taskInfo != null