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