OSDN Git Service

Don't move task if it is already in the destination stack
authorWale Ogunwale <ogunwale@google.com>
Fri, 13 Nov 2015 21:25:16 +0000 (13:25 -0800)
committerWale Ogunwale <ogunwale@google.com>
Fri, 13 Nov 2015 21:25:16 +0000 (13:25 -0800)
commit70c65c8e47c4187fdc315e5d8bc406febd4321fd
treeb6cb9558e71e6c9b4802ae3705dec0e26008b5e7
parent9f1c3f099f410fd1e3b65f1216012c10f01c10fb
Don't move task if it is already in the destination stack

When moving a task from one stack to another we detach the source
stack from the display if the stack is empty after the task move.
If the source and destination stack are the same we detach the
stack from the display when the task is removed, but it isn't
re-attached to the display when the task is add back since we
only attach stacks to displays when they are created.
We no longer try to move the task if it is already in the destination
stack.

Bug: 25671469
Change-Id: Idde54d362a35716223bc5f1143000111af380239
services/core/java/com/android/server/am/ActivityStackSupervisor.java