Merge "Fix the problem that the turn_screen_on Activity does not draw." into tm-dev-plus-aosp am: 73bfd93217
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18871668 Change-Id: I334928f1c966cc53f978378ee3a8bbdb5ae89980 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1100,7 +1100,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);
|
||||
@@ -1312,6 +1311,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