From ee9b12fdc7f5faec20739527920489703de68735 Mon Sep 17 00:00:00 2001 From: Yuriy Budiyev <y.budiyev@corp.mail.ru> Date: Thu, 30 Nov 2017 17:06:36 +0300 Subject: [PATCH] Dev --- .../android/circularprogressbar/CircularProgressBar.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); } } }