Merge "Remove replaced window if we aren't animating its exit." into nyc-dev

This commit is contained in:
TreeHugger Robot
2016-05-10 03:31:32 +00:00
committed by Android (Google) Code Review

View File

@@ -1586,11 +1586,12 @@ final class WindowState implements WindowManagerPolicy.WindowState {
win.transferDimToReplacement();
}
win.mWillReplaceWindow = false;
final boolean animateReplacingWindow = win.mAnimateReplacingWindow;
win.mAnimateReplacingWindow = false;
win.mReplacingRemoveRequested = false;
win.mReplacingWindow = null;
mSkipEnterAnimationForSeamlessReplacement = false;
if (win.mAnimatingExit) {
if (win.mAnimatingExit || !animateReplacingWindow) {
mService.removeWindowInnerLocked(win);
}
}