Loading core/java/android/view/ViewRootImpl.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -1679,6 +1679,7 @@ public final class ViewRootImpl implements ViewParent, boolean insetsPending = false; boolean insetsPending = false; int relayoutResult = 0; int relayoutResult = 0; boolean updatedConfiguration = false; final int surfaceGenerationId = mSurface.getGenerationId(); final int surfaceGenerationId = mSurface.getGenerationId(); Loading Loading @@ -1741,6 +1742,7 @@ public final class ViewRootImpl implements ViewParent, + mPendingConfiguration); + mPendingConfiguration); updateConfiguration(new Configuration(mPendingConfiguration), !mFirst); updateConfiguration(new Configuration(mPendingConfiguration), !mFirst); mPendingConfiguration.seq = 0; mPendingConfiguration.seq = 0; updatedConfiguration = true; } } final boolean overscanInsetsChanged = !mPendingOverscanInsets.equals( final boolean overscanInsetsChanged = !mPendingOverscanInsets.equals( Loading Loading @@ -1978,7 +1980,8 @@ public final class ViewRootImpl implements ViewParent, boolean focusChangedDueToTouchMode = ensureTouchModeLocally( boolean focusChangedDueToTouchMode = ensureTouchModeLocally( (relayoutResult&WindowManagerGlobal.RELAYOUT_RES_IN_TOUCH_MODE) != 0); (relayoutResult&WindowManagerGlobal.RELAYOUT_RES_IN_TOUCH_MODE) != 0); if (focusChangedDueToTouchMode || mWidth != host.getMeasuredWidth() if (focusChangedDueToTouchMode || mWidth != host.getMeasuredWidth() || mHeight != host.getMeasuredHeight() || contentInsetsChanged) { || mHeight != host.getMeasuredHeight() || contentInsetsChanged || updatedConfiguration) { int childWidthMeasureSpec = getRootMeasureSpec(mWidth, lp.width); int childWidthMeasureSpec = getRootMeasureSpec(mWidth, lp.width); int childHeightMeasureSpec = getRootMeasureSpec(mHeight, lp.height); int childHeightMeasureSpec = getRootMeasureSpec(mHeight, lp.height); Loading Loading
core/java/android/view/ViewRootImpl.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -1679,6 +1679,7 @@ public final class ViewRootImpl implements ViewParent, boolean insetsPending = false; boolean insetsPending = false; int relayoutResult = 0; int relayoutResult = 0; boolean updatedConfiguration = false; final int surfaceGenerationId = mSurface.getGenerationId(); final int surfaceGenerationId = mSurface.getGenerationId(); Loading Loading @@ -1741,6 +1742,7 @@ public final class ViewRootImpl implements ViewParent, + mPendingConfiguration); + mPendingConfiguration); updateConfiguration(new Configuration(mPendingConfiguration), !mFirst); updateConfiguration(new Configuration(mPendingConfiguration), !mFirst); mPendingConfiguration.seq = 0; mPendingConfiguration.seq = 0; updatedConfiguration = true; } } final boolean overscanInsetsChanged = !mPendingOverscanInsets.equals( final boolean overscanInsetsChanged = !mPendingOverscanInsets.equals( Loading Loading @@ -1978,7 +1980,8 @@ public final class ViewRootImpl implements ViewParent, boolean focusChangedDueToTouchMode = ensureTouchModeLocally( boolean focusChangedDueToTouchMode = ensureTouchModeLocally( (relayoutResult&WindowManagerGlobal.RELAYOUT_RES_IN_TOUCH_MODE) != 0); (relayoutResult&WindowManagerGlobal.RELAYOUT_RES_IN_TOUCH_MODE) != 0); if (focusChangedDueToTouchMode || mWidth != host.getMeasuredWidth() if (focusChangedDueToTouchMode || mWidth != host.getMeasuredWidth() || mHeight != host.getMeasuredHeight() || contentInsetsChanged) { || mHeight != host.getMeasuredHeight() || contentInsetsChanged || updatedConfiguration) { int childWidthMeasureSpec = getRootMeasureSpec(mWidth, lp.width); int childWidthMeasureSpec = getRootMeasureSpec(mWidth, lp.width); int childHeightMeasureSpec = getRootMeasureSpec(mHeight, lp.height); int childHeightMeasureSpec = getRootMeasureSpec(mHeight, lp.height); Loading