Merge "Don't move stack to front when creating a task for activity to be started" into nyc-dev
diff --git a/services/core/java/com/android/server/am/ActivityStarter.java b/services/core/java/com/android/server/am/ActivityStarter.java
index 33b87b6..82ec80c 100644
--- a/services/core/java/com/android/server/am/ActivityStarter.java
+++ b/services/core/java/com/android/server/am/ActivityStarter.java
@@ -1597,9 +1597,6 @@
private void setTaskFromReuseOrCreateNewTask(TaskRecord taskToAffiliate) {
mTargetStack = computeStackFocus(mStartActivity, true, mLaunchBounds, mLaunchFlags,
mOptions);
- if (mDoResume) {
- mTargetStack.moveToFront("startingNewTask");
- }
if (mReuseTask == null) {
final TaskRecord task = mTargetStack.createTaskRecord(