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

Commit 3e2462db authored by Jesse Evans's avatar Jesse Evans
Browse files

Ensure hierarchy is measured on applying insets

Test: atest FrameworksUiServicesTests
Additional Test: Manually tested using repro APK
Bug: 123746448
Change-Id: I4af28ddd0684d1ba906bc976bb8f6b75cf5f29d6
parent 20496370
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2372,6 +2372,9 @@ public final class ViewRootImpl implements ViewParent,
                    mAttachInfo.mOutsets.set(mPendingOutsets);
                    mApplyInsetsRequested = false;
                    dispatchApplyInsets(host);
                    // We applied insets so force contentInsetsChanged to ensure the
                    // hierarchy is measured below.
                    contentInsetsChanged = true;
                }
                if (visibleInsetsChanged) {
                    mAttachInfo.mVisibleInsets.set(mPendingVisibleInsets);