Merge "Fix unable to launch app again from launcher" into sc-v2-dev

This commit is contained in:
Louis Chang
2021-08-10 13:06:05 +00:00
committed by Android (Google) Code Review

View File

@@ -2682,7 +2682,7 @@ class ActivityStarter {
&& mTargetRootTask != intentTask.getParent().asTask()) {
intentTask.getParent().positionChildAt(POSITION_TOP, intentTask,
false /* includingParents */);
intentTask = intentTask.getParent().asTask();
intentTask = intentTask.getParent().asTaskFragment().getTask();
}
// If the task is in multi-windowing mode, the activity may already be on
// the top (visible to user but not the global top), then the result code