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 96a05d7 commit 121be94
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ protected void onDraw(Canvas canvas) {
float maximum = mMaximum;
float progress = mProgress;
start = mStartAngle;
if (Math.abs(progress) >= Math.abs(maximum)) {
sweep = 360f;
} else {
if (Math.abs(progress) < Math.abs(maximum)) {
sweep = progress / maximum * 360f;
} else {
sweep = 360f;
}
}
canvas.drawArc(mDrawRect, start, sweep, false, mForegroundStrokePaint);
Expand Down

0 comments on commit 121be94

Please sign in to comment.