Clear mAddingToTaskFragment when ActivityStarter is reset

Or the next launching activity could still be added to the
TaskFragment.

Bug: 244102039
Test: steps on the bug
Change-Id: I85c40a2e81ce25d305a3757c9dcc22c657765d72
This commit is contained in:
Louis Chang
2022-08-30 01:38:36 +00:00
parent f2826d867b
commit 3caecf86ce

View File

@@ -2454,6 +2454,7 @@ class ActivityStarter {
mInTask = null;
mInTaskFragment = null;
mAddingToTaskFragment = null;
mAddingToTask = false;
mNewTaskInfo = null;