Merge "[ActivityManager] Move top task to top in window manager"

This commit is contained in:
Craig Mautner
2014-07-16 15:42:50 +00:00
committed by Gerrit Code Review

View File

@@ -1709,7 +1709,7 @@ public final class ActivityStackSupervisor {
TaskRecord sourceTask = sourceRecord.task;
targetStack = sourceTask.stack;
moveHomeStack(targetStack.isHomeStack());
mWindowManager.moveTaskToTop(sourceTask.taskId);
mWindowManager.moveTaskToTop(targetStack.topTask().taskId);
if (!addingToTask &&
(launchFlags&Intent.FLAG_ACTIVITY_CLEAR_TOP) != 0) {
// In this case, we are adding the activity to an existing