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

Commit d96b97b8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not draw rectangles with the same left and right boundaries"

parents e93e6c5e c1950a00
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -146,9 +146,9 @@ final class SmartSelectSprite {
        private final RectF mClipRect = new RectF();
        private final Path mClipPath = new Path();

        /** How far offset the left edge of the rectangle is from the bounding box. */
        /** How offset the left edge of the rectangle is from the left side of the bounding box. */
        private float mLeftBoundary = 0;
        /** How far offset the right edge of the rectangle is from the bounding box. */
        /** How offset the right edge of the rectangle is from the left side of the bounding box. */
        private float mRightBoundary = 0;

        /** Whether the horizontal bounds are inverted (for RTL scenarios). */
@@ -193,6 +193,10 @@ final class SmartSelectSprite {
         */
        @Override
        public void draw(Canvas canvas, Paint paint) {
            if (mLeftBoundary == mRightBoundary) {
                return;
            }

            final float cornerRadius = getCornerRadius();
            final float adjustedCornerRadius = getAdjustedCornerRadius();