summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kuhne <skuhne@google.com>2015-05-13 16:04:44 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-13 16:04:46 +0000
commit4d89374483c61c107a4ad758656cb76e46f7c5c5 (patch)
tree8f529a2470fa35030f455953f6f3d039b451556c
parente1d0188b6954bd42160cbb1e9445e08c7c9c0ae3 (diff)
parent54714cd21e272a4edca16d10f67b0ba3043af535 (diff)
downloadframeworks_base-4d89374483c61c107a4ad758656cb76e46f7c5c5.zip
frameworks_base-4d89374483c61c107a4ad758656cb76e46f7c5c5.tar.gz
frameworks_base-4d89374483c61c107a4ad758656cb76e46f7c5c5.tar.bz2
Merge "Ensure activity visiblity when moving task" into mnc-dev
-rw-r--r--services/core/java/com/android/server/am/ActivityStackSupervisor.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStackSupervisor.java b/services/core/java/com/android/server/am/ActivityStackSupervisor.java
index cb5ba8e..54ea6d7 100644
--- a/services/core/java/com/android/server/am/ActivityStackSupervisor.java
+++ b/services/core/java/com/android/server/am/ActivityStackSupervisor.java
@@ -2868,6 +2868,9 @@ public final class ActivityStackSupervisor implements DisplayListener {
task.stack.removeTask(task, "moveTaskToStack", false /* notMoving */);
}
stack.addTask(task, toTop, true);
+ // The task might have already been running and its visibility needs to be synchronized with
+ // the visibility of the stack / windows.
+ stack.ensureActivitiesVisibleLocked(null, 0);
resumeTopActivitiesLocked();
}