diff options
author | Craig Mautner <cmautner@google.com> | 2014-03-20 10:08:04 -0700 |
---|---|---|
committer | Craig Mautner <cmautner@google.com> | 2014-03-20 10:08:04 -0700 |
commit | 97024321fcff3427e4e1cc6ced9b6abc7525fdb0 (patch) | |
tree | f2843c0880290972cd6dcae348bbf318fd9eeff9 /services/java | |
parent | b78dc69c2be43852dcd7150db2b545f9b4110232 (diff) | |
download | frameworks_base-97024321fcff3427e4e1cc6ced9b6abc7525fdb0.zip frameworks_base-97024321fcff3427e4e1cc6ced9b6abc7525fdb0.tar.gz frameworks_base-97024321fcff3427e4e1cc6ced9b6abc7525fdb0.tar.bz2 |
Move task to top in window manager.
In certain situations it was possible for a task to move to the top
in activity manager but not in window manager. This resulted in
the task appearing behind the launcher icons.
Fixes bug 13410184.
Change-Id: If0582b395e126a8aff70a0e4c64b731083c6ae8a
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/am/ActivityStackSupervisor.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/java/com/android/server/am/ActivityStackSupervisor.java b/services/java/com/android/server/am/ActivityStackSupervisor.java index 62e1340..d616f1b 100644 --- a/services/java/com/android/server/am/ActivityStackSupervisor.java +++ b/services/java/com/android/server/am/ActivityStackSupervisor.java @@ -1709,6 +1709,7 @@ public final class ActivityStackSupervisor { TaskRecord sourceTask = sourceRecord.task; targetStack = sourceTask.stack; moveHomeStack(targetStack.isHomeStack()); + mWindowManager.moveTaskToTop(sourceTask.taskId); if (!addingToTask && (launchFlags&Intent.FLAG_ACTIVITY_CLEAR_TOP) != 0) { // In this case, we are adding the activity to an existing @@ -1767,6 +1768,7 @@ public final class ActivityStackSupervisor { r.setTask(prev != null ? prev.task : targetStack.createTaskRecord(getNextTaskId(), r.info, intent, true), null, true); + mWindowManager.moveTaskToTop(r.task.taskId); if (DEBUG_TASKS) Slog.v(TAG, "Starting new activity " + r + " in new guessed " + r.task); } |