Merge "[ActivityManager] Move top task to top in window manager"
This commit is contained in:
@@ -1709,7 +1709,7 @@ public final class ActivityStackSupervisor {
|
|||||||
TaskRecord sourceTask = sourceRecord.task;
|
TaskRecord sourceTask = sourceRecord.task;
|
||||||
targetStack = sourceTask.stack;
|
targetStack = sourceTask.stack;
|
||||||
moveHomeStack(targetStack.isHomeStack());
|
moveHomeStack(targetStack.isHomeStack());
|
||||||
mWindowManager.moveTaskToTop(sourceTask.taskId);
|
mWindowManager.moveTaskToTop(targetStack.topTask().taskId);
|
||||||
if (!addingToTask &&
|
if (!addingToTask &&
|
||||||
(launchFlags&Intent.FLAG_ACTIVITY_CLEAR_TOP) != 0) {
|
(launchFlags&Intent.FLAG_ACTIVITY_CLEAR_TOP) != 0) {
|
||||||
// In this case, we are adding the activity to an existing
|
// In this case, we are adding the activity to an existing
|
||||||
|
|||||||
Reference in New Issue
Block a user