Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Budiyev committed Nov 23, 2017
1 parent 50b46c3 commit 96a05d7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,11 @@ protected void onDraw(Canvas canvas) {
float maximum = mMaximum;
float progress = mProgress;
start = mStartAngle;
sweep = 360f * (Math.abs(progress) >= Math.abs(maximum) ? 1f : progress / maximum);
if (Math.abs(progress) >= Math.abs(maximum)) {
sweep = 360f;
} else {
sweep = progress / maximum * 360f;
}
}
canvas.drawArc(mDrawRect, start, sweep, false, mForegroundStrokePaint);
}
Expand Down

0 comments on commit 96a05d7

Please sign in to comment.