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

Commit dcf50a4f authored by Adrian Roos's avatar Adrian Roos
Browse files

ViewRootImpl: Notify SurfaceHolder.Callback if the surface size changed

Bug: 72492508
Test: Add SurfaceHolder window, rotate screen, verify surfaceChanged is called
Change-Id: Ifd7d4577367d8bd65e4a9f246bc29d667ecf0cc3
parent 240ad971
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1974,6 +1974,7 @@ public final class ViewRootImpl implements ViewParent,
                final boolean outsetsChanged = !mPendingOutsets.equals(mAttachInfo.mOutsets);
                final boolean surfaceSizeChanged = (relayoutResult
                        & WindowManagerGlobal.RELAYOUT_RES_SURFACE_RESIZED) != 0;
                surfaceChanged |= surfaceSizeChanged;
                final boolean alwaysConsumeNavBarChanged =
                        mPendingAlwaysConsumeNavBar != mAttachInfo.mAlwaysConsumeNavBar;
                if (contentInsetsChanged) {