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
This commit is contained in:
Wale Ogunwale
2016-08-11 09:34:45 -07:00
parent 808621ca54
commit 3c0d44e633

View File

@@ -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();