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

Commit c43c9e05 authored by Adam Powell's avatar Adam Powell Committed by android-build-merger
Browse files

Merge \"Fix layout issue after insets changed\" into nyc-dev

am: 119f1715

Change-Id: I343dc8ad193ad83a8c0628c104836bd392cd07d5
parents fdef509c 119f1715
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1731,7 +1731,7 @@ public final class ViewRootImpl implements ViewParent,
            }

            boolean hwInitialized = false;
            boolean contentInsetsChanged = false;
            boolean framesChanged = false;
            boolean hadSurface = mSurface.isValid();

            try {
@@ -1771,7 +1771,7 @@ public final class ViewRootImpl implements ViewParent,

                final boolean overscanInsetsChanged = !mPendingOverscanInsets.equals(
                        mAttachInfo.mOverscanInsets);
                contentInsetsChanged = !mPendingContentInsets.equals(
                boolean contentInsetsChanged = !mPendingContentInsets.equals(
                        mAttachInfo.mContentInsets);
                final boolean visibleInsetsChanged = !mPendingVisibleInsets.equals(
                        mAttachInfo.mVisibleInsets);
@@ -1825,7 +1825,7 @@ public final class ViewRootImpl implements ViewParent,
                // measure cache is cleared. We might have a pending MSG_RESIZED_REPORT
                // that is supposed to take care of it, but since pending insets are
                // already modified here, it won't detect the frame change after this.
                final boolean framesChanged = overscanInsetsChanged
                framesChanged = overscanInsetsChanged
                        || contentInsetsChanged
                        || stableInsetsChanged
                        || visibleInsetsChanged
@@ -2017,7 +2017,7 @@ 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() || framesChanged ||
                        updatedConfiguration) {
                    int childWidthMeasureSpec = getRootMeasureSpec(mWidth, lp.width);
                    int childHeightMeasureSpec = getRootMeasureSpec(mHeight, lp.height);
@@ -2026,7 +2026,7 @@ public final class ViewRootImpl implements ViewParent,
                            + mWidth + " measuredWidth=" + host.getMeasuredWidth()
                            + " mHeight=" + mHeight
                            + " measuredHeight=" + host.getMeasuredHeight()
                            + " coveredInsetsChanged=" + contentInsetsChanged);
                            + " framesChanged=" + framesChanged);

                     // Ask host how big it wants to be
                    performMeasure(childWidthMeasureSpec, childHeightMeasureSpec);