diff --git a/library/src/main/java/com/pnikosis/materialishprogress/ProgressWheel.java b/library/src/main/java/com/pnikosis/materialishprogress/ProgressWheel.java index 0c54b4f..79c5819 100644 --- a/library/src/main/java/com/pnikosis/materialishprogress/ProgressWheel.java +++ b/library/src/main/java/com/pnikosis/materialishprogress/ProgressWheel.java @@ -434,9 +434,9 @@ public void setProgress(float progress) { } if (progress > 1.0f) { - progress -= 1.0f; - } else if (progress < 0) { - progress = 0; + progress = 1.0f; + } else if (progress < 0.0f) { + progress = 0.0f; } if (progress == mTargetProgress) {