Update mDisplayInstallOrientation when moving to a new display

This should have been done in 5242af609e.

Bug: 161810301
Test: presubmit
Change-Id: I2f7107f805266f12379e3c9bfc8399ec4f3f2db0
This commit is contained in:
Tiger Huang
2022-03-04 20:10:23 +08:00
parent 3e2a850fa6
commit 8c1b6eb020

View File

@@ -1780,6 +1780,7 @@ public final class ViewRootImpl implements ViewParent,
updateInternalDisplay(displayId, mView.getResources());
mImeFocusController.onMovedToDisplay();
mAttachInfo.mDisplayState = mDisplay.getState();
mDisplayInstallOrientation = mDisplay.getInstallOrientation();
// Internal state updated, now notify the view hierarchy.
mView.dispatchMovedToDisplay(mDisplay, config);
}