am 7438b57c: am 2de55513: Merge "Only one task within the stack should moveToBack"

* commit '7438b57c8d1e1649c51c570fe71aef861854730d':
  Only one task within the stack should moveToBack
This commit is contained in:
Craig Mautner
2014-12-10 18:04:52 +00:00
committed by Android Git Automerger

View File

@@ -191,7 +191,9 @@ public class TaskStack {
mTasks.add(stackNdx, task); mTasks.add(stackNdx, task);
task.mStack = this; 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); EventLog.writeEvent(EventLogTags.WM_TASK_MOVED, task.taskId, toTop ? 1 : 0, stackNdx);
} }