Skip to content

Commit

Permalink
#Updated variable on calcCircleRectF
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Pradzinski committed Mar 28, 2019
1 parent 339b576 commit f56c86c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public RectF calcCircleRectF() {
int[] xy = new int[2];
mView.getLocationOnScreen(xy);
float centerX = (xy[0] == 0 ? mView.getX() : xy[0]) + mView.getWidth() / 2;
float centerY = (xy[1] == 0 ? mView.getY() : xy[0]) + mView.getHeight() / 2;
float centerY = (xy[1] == 0 ? mView.getY() : xy[1]) + mView.getHeight() / 2;
return new RectF(centerX - radius, centerY - radius, centerX + radius, centerY + radius);
}

Expand Down

0 comments on commit f56c86c

Please sign in to comment.