OSDN Git Service

Transfer starting windows more aggressively
authorJorim Jaggi <jjaggi@google.com>
Thu, 1 Feb 2018 18:21:07 +0000 (19:21 +0100)
committerJorim Jaggi <jjaggi@google.com>
Tue, 13 Mar 2018 13:03:34 +0000 (13:03 +0000)
commit60f9c97a4893644dde4cff4e595091afce5fb099
tree94dad5df959cceb430f3dca47cb8ad010a01f160
parent89c4bd5f268b44f14424ba9cd77f228e92867619
Transfer starting windows more aggressively

We currently transfer starting windows when starting another
activity on top of the previous one. However, that's not enough:

Sometimes we also need to transfer back in case the one on top
finishes itself/gets hidden for other reasons.

This fixes an issue where some animations are aborted in the
middle of the animation because the trampoline activity contained
the starting window but then the trampoline activity was finished.

Test: go/wm-smoke
Test: Open Drive, Reopen Drive 100x
Test: Open Hangouts, Receive notification, open it, reopen
hangouts from launcher 100x
Test: AppWindowContainerControllerTests
Bug: 72301120

Change-Id: I6711ce0bc35de430aac03f7b8b39ceac26e595e7
services/core/java/com/android/server/wm/AppWindowContainerController.java
services/core/java/com/android/server/wm/AppWindowToken.java
services/core/java/com/android/server/wm/WindowSurfacePlacer.java
services/tests/servicestests/src/com/android/server/wm/AppWindowContainerControllerTests.java