Skip to content
This repository was archived by the owner on Nov 10, 2024. It is now read-only.

Commit 674b07b

Browse files
committed
Resolved PR comments
1 parent f8794c4 commit 674b07b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/src/main/java/ir/smartdevelop/eram/showcaseview/CircleView.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import smartdevelop.ir.eram.showcaseviewlib.Targetable;
1313

1414
public class CircleView extends View implements Targetable {
15-
private static final int DEFAULT_CIRCLE_COLOR = Color.RED;
1615

17-
private int circleColor = DEFAULT_CIRCLE_COLOR;
16+
private static final int DEFAULT_CIRCLE_COLOR = Color.RED;
17+
private int _circleColor = DEFAULT_CIRCLE_COLOR;
1818
private Paint _paint;
1919
private Path _guidePath = new Path();
2020
private RectF _boundingRect = new RectF();
@@ -39,13 +39,13 @@ private void init(Context context, AttributeSet attrs)
3939

4040
public void setCircleColor(int circleColor)
4141
{
42-
this.circleColor = circleColor;
42+
this._circleColor = circleColor;
4343
invalidate();
4444
}
4545

4646
public int getCircleColor()
4747
{
48-
return circleColor;
48+
return _circleColor;
4949
}
5050

5151
private int usableWidth() {
@@ -83,7 +83,7 @@ protected void onDraw(Canvas canvas)
8383
int cx = pl + halfUsableWidth;
8484
int cy = pt + halfUsableHeight;
8585

86-
_paint.setColor(circleColor);
86+
_paint.setColor(_circleColor);
8787

8888
canvas.drawCircle(cx, cy, radius, _paint);
8989

0 commit comments

Comments
 (0)