Merge "Remove display policy references while waiting for window animation to complete" into sc-dev

This commit is contained in:
Winson Chung
2021-06-21 16:46:18 +00:00
committed by Android (Google) Code Review

View File

@@ -2568,6 +2568,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
private void setupWindowForRemoveOnExit() {
mRemoveOnExit = true;
setDisplayLayoutNeeded();
getDisplayContent().getDisplayPolicy().removeWindowLw(this);
// Request a focus update as this window's input channel is already gone. Otherwise
// we could have no focused window in input manager.
final boolean focusChanged = mWmService.updateFocusedWindowLocked(