Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zj565061763 committed Jun 14, 2019
1 parent 82337a1 commit 8329698
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/main/java/com/sd/lib/blingbutton/FBlingButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ protected void onDraw(Canvas canvas)
final float radius = mCurrentOutside / 2;
final RectF rectF = newRectF(x, y, radius);

rectF.inset(strokeWidth / 2, strokeWidth / 2);
final float inset = strokeWidth / 2;
rectF.inset(inset, inset);

mPaint.setStrokeWidth(strokeWidth);
canvas.drawArc(rectF, 0, 360, false, mPaint);
}
Expand Down

0 comments on commit 8329698

Please sign in to comment.