Merge "Only updateBoundsSurface when surface size has changed." into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fd979ca3d2
@@ -2210,6 +2210,8 @@ public final class ViewRootImpl implements ViewParent,
|
||||
|
||||
final boolean isViewVisible = viewVisibility == View.VISIBLE;
|
||||
final boolean windowRelayoutWasForced = mForceNextWindowRelayout;
|
||||
boolean surfaceSizeChanged = false;
|
||||
|
||||
if (mFirst || windowShouldResize || insetsChanged ||
|
||||
viewVisibilityChanged || params != null || mForceNextWindowRelayout) {
|
||||
mForceNextWindowRelayout = false;
|
||||
@@ -2288,7 +2290,7 @@ public final class ViewRootImpl implements ViewParent,
|
||||
final boolean cutoutChanged = !mPendingDisplayCutout.equals(
|
||||
mAttachInfo.mDisplayCutout);
|
||||
final boolean outsetsChanged = !mPendingOutsets.equals(mAttachInfo.mOutsets);
|
||||
final boolean surfaceSizeChanged = (relayoutResult
|
||||
surfaceSizeChanged = (relayoutResult
|
||||
& WindowManagerGlobal.RELAYOUT_RES_SURFACE_RESIZED) != 0;
|
||||
surfaceChanged |= surfaceSizeChanged;
|
||||
final boolean alwaysConsumeSystemBarsChanged =
|
||||
@@ -2571,7 +2573,7 @@ public final class ViewRootImpl implements ViewParent,
|
||||
maybeHandleWindowMove(frame);
|
||||
}
|
||||
|
||||
if (surfaceChanged) {
|
||||
if (surfaceSizeChanged) {
|
||||
updateBoundsSurface();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user