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

Commit b08ed04b authored by Robert Carr's avatar Robert Carr
Browse files

WindowState: Update mLastSurfaceInsets at creation time.

Otherwise the first call to updateSurfacePosition may think the surface
insets are changing and defer a transaction, but the client may
not necessarily render another frame as the insets were not actually
changing.

Bug: 74084094
Test: Manual. go/wm-smoke.
Change-Id: I917dff05c4ac0b578d3ccc48c95a10cad8d6d0f9
parent 228f8f87
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -693,6 +693,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        mOwnerCanAddInternalSystemWindow = ownerCanAddInternalSystemWindow;
        mWindowId = new WindowId(this);
        mAttrs.copyFrom(a);
        mLastSurfaceInsets.set(mAttrs.surfaceInsets);
        mViewVisibility = viewVisibility;
        mPolicy = mService.mPolicy;
        mContext = mService.mContext;