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

Commit 73f7c2d7 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Consider move-to-front as opening to finish recents

There can be multiple transient-hide tasks (i.e. mPausingTasks).
Such as entering recents from a translucent task, then all
visible tasks will be transient-hide.

It is possible to choose a non-top visible task as the target
to return, then the task will be CHANGE mode with FLAG_MOVED_TO_TOP.
Then the operation (merge) should open the task (leave recents)
instead of doing nothing.

Bug: 313596094
Test: Launch Task A, launch translucent task B.
      Swipe up to enter recents. Click the TaskView of Task A.
      The recents should be closed and go to Task A.
Change-Id: I6462b5d8b2b8658dba6190a01b75dd58edf6ee7f
parent 1f50aa3c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -627,7 +627,8 @@ public class RecentsTransitionHandler implements Transitions.TransitionHandler {
                        && mRecentsTask.equals(change.getContainer());
                hasTaskChange = hasTaskChange || isRootTask;
                final boolean isLeafTask = leafTaskFilter.test(change);
                if (TransitionUtil.isOpeningType(change.getMode())) {
                if (TransitionUtil.isOpeningType(change.getMode())
                        || TransitionUtil.isOrderOnly(change)) {
                    if (isRecentsTask) {
                        recentsOpening = change;
                    } else if (isRootTask || isLeafTask) {