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

Commit 26d02d29 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Use actual window size for layout

When doing the actual layout pass, desiredWindowWidth/Height might be wrong,
because window manager has the final say how large the surface is, so use
that size.

Bug: 27342700
Change-Id: I4f74fdef66ba7aa88b86f8c95fb391b1cc847beb
parent 51605275
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1982,7 +1982,7 @@ public final class ViewRootImpl implements ViewParent,
        boolean triggerGlobalLayoutListener = didLayout
                || mAttachInfo.mRecomputeGlobalAttributes;
        if (didLayout) {
            performLayout(lp, desiredWindowWidth, desiredWindowHeight);
            performLayout(lp, mWidth, mHeight);

            // By this point all views have been sized and positioned
            // We can compute the transparent area