Merge "Keep starting window on top during remove."

This commit is contained in:
Wei Sheng Shih
2023-07-05 10:25:50 +00:00
committed by Android (Google) Code Review

View File

@@ -2470,6 +2470,11 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
if (allowExitAnimation && mWinAnimator.applyAnimationLocked(transit, false)) {
ProtoLog.v(WM_DEBUG_ANIM,
"Set animatingExit: reason=remove/applyAnimation win=%s", this);
if (startingWindow && mSurfaceAnimator.hasLeash()) {
// Keep starting window on top during fade-out animation.
getPendingTransaction().setLayer(mSurfaceAnimator.mLeash,
Integer.MAX_VALUE);
}
mAnimatingExit = true;
// mAnimatingExit affects canAffectSystemUiFlags(). Run layout such that