OSDN Git Service

When keyguard exits use same anim for all windows
authorCraig Mautner <cmautner@google.com>
Tue, 4 Nov 2014 23:32:57 +0000 (15:32 -0800)
committerCraig Mautner <cmautner@google.com>
Tue, 4 Nov 2014 23:38:05 +0000 (15:38 -0800)
commitb83408018176ec58f50e792590a22fdc9eb87fff
treebee0a6c49fc9e9b66dd554bc1abda6b8196e274f
parent9c95015b0ccaa02b97b4c96950e2b07e6a5a7b4e
When keyguard exits use same anim for all windows

The entering animations were only applied to the incoming windows
one time. If those windows weren't drawn yet then they never had
an animation assigned.

Furthermore if a starting window was drawn in time it would get the
animation but its main window would not get it if it weren't drawn.
Even if an animation were assigned later they wouldn't be synced
with each other.

This change creates a single animation which is shared by all
incoming windows. As windows are drawn they can then animate with
the starting window.

(Also refactorings to eliminate redundant code and unnecessary
variables.)

Fixes bug 15991916.

Change-Id: I9949ef0a1639c831754316da34de97cb86403f5a
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
services/core/java/com/android/server/wm/WindowAnimator.java