diff options
author | 2016-08-11 09:34:45 -0700 | |
---|---|---|
committer | 2016-08-11 09:34:45 -0700 | |
commit | 3c0d44e6336bf15e73f2461d97fcd24fe83ed2ef (patch) | |
tree | 6be30d338881ada763603effa1dd71940015c16e | |
parent | 808621ca54d0d72c5e291c290bc13e3d3f3c0140 (diff) |
Clear WS.mDestroying on AWT.clearAnimatingFlags
We call AppWindowToken.clearAnimatingFlags() when an app token is
no longer considered exiting since it is now part of the opening
app transition. To the same effect we should no longer consider
its windows destroying so they can be factored in when decided
what to do during the transition like picking the right wallpaper
target.
Bug: 30790402
Change-Id: Ide94af72a38bd4a955abb122b47f921fd3f70652
-rw-r--r-- | services/core/java/com/android/server/wm/AppWindowToken.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/wm/AppWindowToken.java b/services/core/java/com/android/server/wm/AppWindowToken.java index d55226f24c6c..1f385dfac5a5 100644 --- a/services/core/java/com/android/server/wm/AppWindowToken.java +++ b/services/core/java/com/android/server/wm/AppWindowToken.java @@ -359,6 +359,11 @@ class AppWindowToken extends WindowToken { // placement for this window during this period, one or more frame will // show up with wrong position or scale. win.mWinAnimator.mAnimating = false; + + if (win.mDestroying) { + win.mDestroying = false; + service.mDestroySurface.remove(win); + } } } requestUpdateWallpaperIfNeeded(); |