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

This commit is contained in:
TreeHugger Robot
2017-07-18 17:21:49 +00:00
committed by Android (Google) Code Review

View File

@@ -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 */);
}
}