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

Commit c98922ba authored by Alan Viverette's avatar Alan Viverette
Browse files

Constrain FastScroller max width to be >= 0

Bug: 22055552
Change-Id: Ib0bba93e5490ad9d8668c9532f23654a8cb702d9
parent c6040826
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -660,7 +660,7 @@ class FastScroller {
            maxWidth = containerWidth - adjacent.getRight();
        }

        final int adjMaxWidth = maxWidth - marginLeft - marginRight;
        final int adjMaxWidth = Math.max(0, maxWidth - marginLeft - marginRight);
        final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(adjMaxWidth, MeasureSpec.AT_MOST);
        final int heightMeasureSpec = MeasureSpec.makeSafeMeasureSpec(container.height(),
                MeasureSpec.UNSPECIFIED);