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

Commit 9a394344 authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

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

am: 66864b86

Change-Id: I2206d28c53073f22f77727518273f4e38466648b
parents a3f70c18 66864b86
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");