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

Commit bb983d28 authored by Bryce Lee's avatar Bryce Lee Committed by Android (Google) Code Review
Browse files

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

parents 63cea4ee 353112c6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;