OSDN Git Service

If nothing to animate, don't call remote animator
authorJorim Jaggi <jjaggi@google.com>
Thu, 25 Jan 2018 14:06:13 +0000 (15:06 +0100)
committerJorim Jaggi <jjaggi@google.com>
Mon, 29 Jan 2018 18:16:34 +0000 (19:16 +0100)
commit93f9fe342be78bc90dc8aede1dd32e55be32657e
tree1853c661f9751cad7f200543bb9e1da8dee760b1
parent5511634f52fe7b760b1819f06bcd1c4d4acc9cd2
If nothing to animate, don't call remote animator

Otherwise we'll end up with weird transitions when just switching
focus because focus switch causes an app transition to run.

Test: go/wm-smoke
Test: Enter PIP, click on PIP window, click on launcher window
to execute an empty app transition.

Change-Id: Ie42ad808ff4d4646570c122fd3b964e3255a57bc
services/core/java/com/android/server/wm/RemoteAnimationController.java
services/tests/servicestests/src/com/android/server/wm/RemoteAnimationControllerTest.java