Merge "Remove replaced window if we aren't animating its exit." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c26aabadc3
@@ -1586,11 +1586,12 @@ final class WindowState implements WindowManagerPolicy.WindowState {
|
|||||||
win.transferDimToReplacement();
|
win.transferDimToReplacement();
|
||||||
}
|
}
|
||||||
win.mWillReplaceWindow = false;
|
win.mWillReplaceWindow = false;
|
||||||
|
final boolean animateReplacingWindow = win.mAnimateReplacingWindow;
|
||||||
win.mAnimateReplacingWindow = false;
|
win.mAnimateReplacingWindow = false;
|
||||||
win.mReplacingRemoveRequested = false;
|
win.mReplacingRemoveRequested = false;
|
||||||
win.mReplacingWindow = null;
|
win.mReplacingWindow = null;
|
||||||
mSkipEnterAnimationForSeamlessReplacement = false;
|
mSkipEnterAnimationForSeamlessReplacement = false;
|
||||||
if (win.mAnimatingExit) {
|
if (win.mAnimatingExit || !animateReplacingWindow) {
|
||||||
mService.removeWindowInnerLocked(win);
|
mService.removeWindowInnerLocked(win);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user