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

Commit ffd04902 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix wrong measurement in DecorView

Bug: 27215338
Change-Id: I512df9b23788daf485b020a2199a55a7c6ab6311
parent eefb17ac
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -585,14 +585,14 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind
                    w = 0;
                }
                if (DEBUG_MEASURE) Log.d(mLogTag, "Fixed width: " + w);
                if (w > 0) {
                final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
                if (w > 0) {
                    widthMeasureSpec = MeasureSpec.makeMeasureSpec(
                            Math.min(w, widthSize), EXACTLY);
                    fixedWidth = true;
                } else {
                    widthMeasureSpec = MeasureSpec.makeMeasureSpec(
                            widthMeasureSpec - mFloatingInsets.left - mFloatingInsets.right,
                            widthSize - mFloatingInsets.left - mFloatingInsets.right,
                            AT_MOST);
                    mApplyFloatingHorizontalInsets = true;
                }