Merge "Clear associated task when starting activity in a new task."

This commit is contained in:
Bryce Lee
2017-03-02 00:48:24 +00:00
committed by Android (Google) Code Review

View File

@@ -1544,6 +1544,9 @@ class ActivityStarter {
// running, and the caller has asked to clear the current task to have this
// activity at the top.
mAddingToTask = true;
// We are no longer placing the activity in the task we previously thought we were.
mStartActivity.task = null;
// Now pretend like this activity is being started by the top of its task, so it
// is put in the right place.
mSourceRecord = intentActivity;