Merge "Fix the problem that the turn_screen_on Activity does not draw." into tm-dev-plus-aosp am: 73bfd93217 am: 8c67207294 am: 68a81a2aca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18871668 Change-Id: Iebb8a23f4171b79115ea14517aad29f5a7c90e07 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1104,7 +1104,6 @@ public final class ViewRootImpl implements ViewParent,
|
||||
if (mView == null) {
|
||||
mView = view;
|
||||
|
||||
mAttachInfo.mDisplayState = mDisplay.getState();
|
||||
mDisplayInstallOrientation = mDisplay.getInstallOrientation();
|
||||
mViewLayoutDirectionInitial = mView.getRawLayoutDirection();
|
||||
mFallbackEventHandler.setView(view);
|
||||
@@ -1316,6 +1315,9 @@ public final class ViewRootImpl implements ViewParent,
|
||||
}
|
||||
|
||||
registerListeners();
|
||||
// We should update mAttachInfo.mDisplayState after registerDisplayListener
|
||||
// because displayState might be changed before registerDisplayListener.
|
||||
mAttachInfo.mDisplayState = mDisplay.getState();
|
||||
if ((res & WindowManagerGlobal.ADD_FLAG_USE_BLAST) != 0) {
|
||||
mUseBLASTAdapter = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user