summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author raysb.kim <raysb.kim@lge.com> 2014-11-11 08:38:21 +0900
committer seunghyun85.lee <seunghyun85.lee@lge.com> 2014-11-24 09:55:11 +0900
commit00a2725683177e97e02f474332a1b64dafa0ceba (patch)
tree83127f9ee346c8168f1710d915546c7af15eaa2f
parent34c495d2e9d873aeb7e3d86077f0ef4b8d8993b6 (diff)
Only one task within the stack should moveToBack
In case of the last stack of application move to back, ONLY one stack within stack should move to back. but stack itseft move to back. Default bahavior of ActivityManager is that the stack will go back within stack when the last stack of application move to back. The stack is managed by DisplayContent of WindowManagerService should be same but taking one more action that move stack itself. Change-Id: If394ddf16b0fcda2ae3252e8f3b5336322ef6808 Signed-off-by: Seunghyun Lee <seunghyun85.lee@lge.com>
-rw-r--r--services/core/java/com/android/server/wm/TaskStack.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/TaskStack.java b/services/core/java/com/android/server/wm/TaskStack.java
index 238c77e03929..802cf4bb119f 100644
--- a/services/core/java/com/android/server/wm/TaskStack.java
+++ b/services/core/java/com/android/server/wm/TaskStack.java
@@ -191,7 +191,9 @@ public class TaskStack {
mTasks.add(stackNdx, task);
task.mStack = this;
- mDisplayContent.moveStack(this, true);
+ if (toTop) {
+ mDisplayContent.moveStack(this, true);
+ }
EventLog.writeEvent(EventLogTags.WM_TASK_MOVED, task.taskId, toTop ? 1 : 0, stackNdx);
}