Don't move stack to front when creating a task for activity to be started

This causes foucs to move to the current activity in the stack which isn't
needed. Focus will be moved when the new activity is started in the stack.

Bug: 26381750
Change-Id: Ia76962dc5ba3ce336d2a4e074d14db06eebbe78c
This commit is contained in:
Wale Ogunwale
2016-05-01 10:30:03 -07:00
parent d971a9d5f2
commit efef374ccf

View File

@@ -1597,9 +1597,6 @@ class ActivityStarter {
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(