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

Commit c907ce46 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Fix wrong measurement in DecorView

am: ffd04902

* commit 'ffd04902':
  Fix wrong measurement in DecorView
parents 1300e14d ffd04902
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;
                }