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

Commit

Permalink
Resolved PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasMata committed Oct 6, 2020
1 parent f8794c4 commit 674b07b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
import smartdevelop.ir.eram.showcaseviewlib.Targetable;

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

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

public void setCircleColor(int circleColor)
{
this.circleColor = circleColor;
this._circleColor = circleColor;
invalidate();
}

public int getCircleColor()
{
return circleColor;
return _circleColor;
}

private int usableWidth() {
Expand Down Expand Up @@ -83,7 +83,7 @@ protected void onDraw(Canvas canvas)
int cx = pl + halfUsableWidth;
int cy = pt + halfUsableHeight;

_paint.setColor(circleColor);
_paint.setColor(_circleColor);

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

Expand Down

0 comments on commit 674b07b

Please sign in to comment.