OSDN Git Service

Don't leak starting window when app crashes before adding windows
authorWale Ogunwale <ogunwale@google.com>
Sun, 24 May 2015 19:36:21 +0000 (12:36 -0700)
committerWale Ogunwale <ogunwale@google.com>
Sun, 24 May 2015 19:36:21 +0000 (12:36 -0700)
commit10cb5e2ac7f5e44037e26114ea0b0ab9d3028111
tree613eaaa497ec6e452b2112255cb439cb8b92e775
parenta75902439403966b9308d38fcf5e51c20e43a583
Don't leak starting window when app crashes before adding windows

It is possible for us to leak an app starting window if the app it
is associated with fails to start before adding any windows. This
causes the starting window to permanently be visible at the layer
it occupies.

We now remove the starting window immediately when the app token
is been removed if it is the last window in the token and it isn't
animating.

Bug: 21375344
Change-Id: Ib3da148501645a44736c639c0181c3fabe0138e8
services/core/java/com/android/server/wm/WindowManagerService.java
services/core/java/com/android/server/wm/WindowToken.java