Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 426e872d authored by Chet Haase's avatar Chet Haase Committed by android-build-merger
Browse files

Merge "Force second measure pass when there is a configuration change" into...

Merge "Force second measure pass when there is a configuration change" into nyc-dev am: c381c4e8 am: 26a46271
am: c96a245e

* commit 'c96a245e':
  Force second measure pass when there is a configuration change

Change-Id: Ic81ffd3b7ea102f8e4e72a3a6c5d779dfb1b009e
parents f08b176d c96a245e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1679,6 +1679,7 @@ public final class ViewRootImpl implements ViewParent,

        boolean insetsPending = false;
        int relayoutResult = 0;
        boolean updatedConfiguration = false;

        final int surfaceGenerationId = mSurface.getGenerationId();

@@ -1741,6 +1742,7 @@ public final class ViewRootImpl implements ViewParent,
                            + mPendingConfiguration);
                    updateConfiguration(new Configuration(mPendingConfiguration), !mFirst);
                    mPendingConfiguration.seq = 0;
                    updatedConfiguration = true;
                }

                final boolean overscanInsetsChanged = !mPendingOverscanInsets.equals(
@@ -1978,7 +1980,8 @@ public final class ViewRootImpl implements ViewParent,
                boolean focusChangedDueToTouchMode = ensureTouchModeLocally(
                        (relayoutResult&WindowManagerGlobal.RELAYOUT_RES_IN_TOUCH_MODE) != 0);
                if (focusChangedDueToTouchMode || mWidth != host.getMeasuredWidth()
                        || mHeight != host.getMeasuredHeight() || contentInsetsChanged) {
                        || mHeight != host.getMeasuredHeight() || contentInsetsChanged ||
                        updatedConfiguration) {
                    int childWidthMeasureSpec = getRootMeasureSpec(mWidth, lp.width);
                    int childHeightMeasureSpec = getRootMeasureSpec(mHeight, lp.height);