diff --git a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java index fdcb75a..3113ed9 100644 --- a/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java +++ b/src/main/java/com/budiyev/android/circularprogressbar/CircularProgressBar.java @@ -613,9 +613,8 @@ public void onAnimationEnd(Animator animation) { mIndeterminateOffsetAngle = (mIndeterminateOffsetAngle + mIndeterminateMinimumAngle * 2f) % 360f; } if (!mCancelled) { - ValueAnimator animator = mIndeterminateSweepAnimator; - if (animator != null) { - animator.start(); + if (!animation.isRunning()) { + animation.start(); } } }