Skip to content

Commit

Permalink
CircularProgressView: Fix integer division in floating point context.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schildbach committed Dec 12, 2019
1 parent b701a4f commit 67dfc30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void updatePath(final int w, final int h) {
if (progress == 0) {
path.close();
} else if (progress < maxProgress) {
final float angle = progress * 360 / maxProgress;
final float angle = (float) (progress * 360) / maxProgress;
final float x = w / 2f;
final float y = h / 2f;

Expand Down

0 comments on commit 67dfc30

Please sign in to comment.