Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-budiyev committed Oct 8, 2018
1 parent 9c66539 commit eaba1cc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,15 @@ protected void onDraw(final Canvas canvas) {
if (sweep > 0) {
start += capAngle;
sweep -= capAngle * 2f;
if (sweep < 0.0001f) {
sweep = 0.0001f;
}
} else if (sweep < 0) {
start -= capAngle;
sweep += capAngle * 2f;
if (sweep > -0.0001f) {
sweep = -0.0001f;
}
}
}
canvas.drawArc(mDrawRect, start, sweep, false, mForegroundStrokePaint);
Expand Down

0 comments on commit eaba1cc

Please sign in to comment.