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

Commit 72a19b6d authored by Wale Ogunwale's avatar Wale Ogunwale Committed by android-build-merger
Browse files

Don't move stack to bottom when creating task at bottom

am: 8cee0336

Change-Id: Ic55fc2d7f7ef6b58ae8bd708e8e84b97744e30e3
parents 63603378 8cee0336
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -80,7 +80,9 @@ public class TaskWindowContainerController
            final Task task = createTask(taskId, stack, userId, bounds, overrideConfig, resizeMode,
                    supportsPictureInPicture, homeTask, taskDescription);
            final int position = toTop ? POSITION_TOP : POSITION_BOTTOM;
            stack.addTask(task, position, showForAllUsers, true /* moveParents */);
            // We only want to move the parents to the parents if we are creating this task at the
            // top of its stack.
            stack.addTask(task, position, showForAllUsers, toTop /* moveParents */);
        }
    }