Merge "Update mDisplayInstallOrientation when moving to a new display" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-03-10 17:09:09 +00:00
committed by Android (Google) Code Review

View File

@@ -1777,6 +1777,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);
}