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

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

Merge "Fixing issue with positioning tasks when moving to fullscreen." into oc-dev

parents aa6b649a 3a649981
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2397,10 +2397,10 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D
            } else {
                for (int i = 0; i < size; i++) {
                    final TaskRecord task = tasks.get(i);
                    final int position = fullscreenStack != null
                            ? Math.max(fullscreenStack.getAllTasks().size() - 1, 0) : 0;
                    // Defer resume until all the tasks have been moved to the fullscreen stack
                    task.reparent(FULLSCREEN_WORKSPACE_STACK_ID, position,
                    // Position the tasks in the fullscreen stack in order at the bottom of the
                    // stack. Also defer resume until all the tasks have been moved to the
                    // fullscreen stack.
                    task.reparent(FULLSCREEN_WORKSPACE_STACK_ID, i /* position */,
                            REPARENT_LEAVE_STACK_IN_PLACE, !ANIMATE, DEFER_RESUME,
                            schedulePictureInPictureModeChange,
                            "moveTasksToFullscreenStack - NOT_onTop");