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

Commit 39c512b6 authored by Romain Guy's avatar Romain Guy
Browse files

Don't swap bottom left and bottom right corner radii.

Change-Id: If57b6627f67998edc384de15e3d970f8edf18211
parent 16dc3073
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -811,11 +811,12 @@ public class GradientDrawable extends Drawable {
                        com.android.internal.R.styleable.DrawableCorners_bottomRightRadius, radius);
                if (topLeftRadius != radius || topRightRadius != radius ||
                        bottomLeftRadius != radius || bottomRightRadius != radius) {
                    // The corner radii are specified in clockwise order (see Path.addRoundRect())
                    setCornerRadii(new float[] {
                            topLeftRadius, topLeftRadius,
                            topRightRadius, topRightRadius,
                            bottomLeftRadius, bottomLeftRadius,
                            bottomRightRadius, bottomRightRadius
                            bottomRightRadius, bottomRightRadius,
                            bottomLeftRadius, bottomLeftRadius
                    });
                }
                a.recycle();
+1 −1

File changed.

Contains only whitespace changes.