Skip to content

Commit 19658a1

Browse files
generatedunixname89002005287564facebook-github-bot
generatedunixname89002005287564
authored andcommitted
Daily arc lint --take GOOGLEJAVAFORMAT
Reviewed By: zertosh Differential Revision: D21154707 fbshipit-source-id: 11956915c265f98e286638b91d66d51545e3a311
1 parent a136b34 commit 19658a1

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -663,22 +663,30 @@ private void updatePath() {
663663
mCenterDrawPath.addRoundRect(
664664
mTempRectForCenterDrawPath,
665665
new float[] {
666-
Math.max(topLeftRadius - borderWidth.left * 0.5f,
667-
(borderWidth.left > 0.0f) ? (topLeftRadius / borderWidth.left) : 0.0f),
668-
Math.max(topLeftRadius - borderWidth.top * 0.5f,
669-
(borderWidth.top > 0.0f) ? (topLeftRadius / borderWidth.top) : 0.0f),
670-
Math.max(topRightRadius - borderWidth.right * 0.5f,
671-
(borderWidth.right > 0.0f) ? (topRightRadius / borderWidth.right) : 0.0f),
672-
Math.max(topRightRadius - borderWidth.top * 0.5f,
673-
(borderWidth.top > 0.0f) ? (topRightRadius / borderWidth.top) : 0.0f),
674-
Math.max(bottomRightRadius - borderWidth.right * 0.5f,
675-
(borderWidth.right > 0.0f) ? (bottomRightRadius / borderWidth.right) : 0.0f),
676-
Math.max(bottomRightRadius - borderWidth.bottom * 0.5f,
677-
(borderWidth.bottom > 0.0f) ? (bottomRightRadius / borderWidth.bottom) : 0.0f),
678-
Math.max(bottomLeftRadius - borderWidth.left * 0.5f,
679-
(borderWidth.left > 0.0f) ? (bottomLeftRadius / borderWidth.left) : 0.0f),
680-
Math.max(bottomLeftRadius - borderWidth.bottom * 0.5f,
681-
(borderWidth.bottom > 0.0f) ? (bottomLeftRadius / borderWidth.bottom) : 0.0f)
666+
Math.max(
667+
topLeftRadius - borderWidth.left * 0.5f,
668+
(borderWidth.left > 0.0f) ? (topLeftRadius / borderWidth.left) : 0.0f),
669+
Math.max(
670+
topLeftRadius - borderWidth.top * 0.5f,
671+
(borderWidth.top > 0.0f) ? (topLeftRadius / borderWidth.top) : 0.0f),
672+
Math.max(
673+
topRightRadius - borderWidth.right * 0.5f,
674+
(borderWidth.right > 0.0f) ? (topRightRadius / borderWidth.right) : 0.0f),
675+
Math.max(
676+
topRightRadius - borderWidth.top * 0.5f,
677+
(borderWidth.top > 0.0f) ? (topRightRadius / borderWidth.top) : 0.0f),
678+
Math.max(
679+
bottomRightRadius - borderWidth.right * 0.5f,
680+
(borderWidth.right > 0.0f) ? (bottomRightRadius / borderWidth.right) : 0.0f),
681+
Math.max(
682+
bottomRightRadius - borderWidth.bottom * 0.5f,
683+
(borderWidth.bottom > 0.0f) ? (bottomRightRadius / borderWidth.bottom) : 0.0f),
684+
Math.max(
685+
bottomLeftRadius - borderWidth.left * 0.5f,
686+
(borderWidth.left > 0.0f) ? (bottomLeftRadius / borderWidth.left) : 0.0f),
687+
Math.max(
688+
bottomLeftRadius - borderWidth.bottom * 0.5f,
689+
(borderWidth.bottom > 0.0f) ? (bottomLeftRadius / borderWidth.bottom) : 0.0f)
682690
},
683691
Path.Direction.CW);
684692

@@ -1007,7 +1015,7 @@ private static int fastBorderCompatibleColorOrZero(
10071015

10081016
private void drawRectangularBackgroundWithBorders(Canvas canvas) {
10091017
mPaint.setStyle(Paint.Style.FILL);
1010-
1018+
10111019
int useColor = ColorUtil.multiplyColorAlpha(mColor, mAlpha);
10121020
if (Color.alpha(useColor) != 0) { // color is not transparent
10131021
mPaint.setColor(useColor);

0 commit comments

Comments
 (0)