OSDN Git Service

Don't move stack to bottom when creating task at bottom
authorWale Ogunwale <ogunwale@google.com>
Tue, 18 Jul 2017 13:33:01 +0000 (06:33 -0700)
committerWale Ogunwale <ogunwale@google.com>
Tue, 18 Jul 2017 13:33:01 +0000 (06:33 -0700)
commit1f5b92fd53ad0193235ae3e6cbc54a4120ac2457
tree26baf97eaef3b3adfdf25cb4e67f0a2fce368ac4
parentfed5d370a1ac1adedbb30fadc9014e69dc15fcb7
Don't move stack to bottom when creating task at bottom

When creating a task, only move the parents of the task if we are creating
the task at the top of the stack. i.e. creating the task at the top of its
stack will move the stack forward and creating the task at the bottom of
the stack shouldn't move the stack backwards. Creating a task at the bottom
is used for things like restoring a task from recents to use for other things
and for background user, so shouldn't affect visibility of its parent stack.

Change-Id: Ifcaf7c5a95294631dff675ac5c7d87f059b1792a
Fixes: 62352722
Test: go/wm-smoke
services/core/java/com/android/server/wm/TaskWindowContainerController.java