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>
This commit is contained in:
raysb.kim
2014-11-11 08:38:21 +09:00
committed by seunghyun85.lee
parent 34c495d2e9
commit 00a2725683

View File

@ -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);
}