OSDN Git Service

Fixed NPE when trying to animate a windows whose display is gone.
authorWale Ogunwale <ogunwale@google.com>
Wed, 1 Apr 2015 18:23:15 +0000 (11:23 -0700)
committerWale Ogunwale <ogunwale@google.com>
Wed, 1 Apr 2015 20:43:34 +0000 (13:43 -0700)
commitf16a281066ed7b524676698f95642c0a550b0b62
tree9e0179a83c6a3a70af373b9a396fb40e222da301
parent356c628e1b3ff6a3f327fdc512deb5288710ab47
Fixed NPE when trying to animate a windows whose display is gone.

In some cases it is possible for the AppToken.allAppWindows list to
get out of sync with the list of windows known to WMS if the client
doesn't call Session.remove(Window). This can lead to an NPE when
the animation threads runs and the display for the window has been
removed.

Also corrected some method names/scopes I ran across while debugging.

Bug: 19972099
Change-Id: Ib0ae7ede6c506f833bbdd66723b88e7504a61907
services/core/java/com/android/server/am/ActivityStackSupervisor.java
services/core/java/com/android/server/wm/AppWindowAnimator.java
services/core/java/com/android/server/wm/WindowAnimator.java