OSDN Git Service

Fix NPE in deferToPendingTransaction.
authorRobert Carr <racarr@google.com>
Thu, 11 Aug 2016 20:03:02 +0000 (13:03 -0700)
committerRobert Carr <racarr@google.com>
Thu, 11 Aug 2016 20:03:02 +0000 (13:03 -0700)
commitc24078f1a2500dd7227b8be556999968ba51c24b
treea1e224f31724830ab608be934830e617c26fbe6a
parentff38f6a699184102500b7c0c7a33b310cc4d8e38
Fix NPE in deferToPendingTransaction.

Just because a child window has a surface doesn't necessarily
mean the parent window will have a surface. destroySurfaceLocked()
only takes care of setting mAttachedHidden so the child surface
will be invisible, but it may not be destroyed until a later point.

Bug: 30813094
Change-Id: Idb1b03fd61a7537ebfe33bafc93f278c0e6751f4
services/core/java/com/android/server/wm/WindowStateAnimator.java