Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Budiyev committed Nov 30, 2017
1 parent 5067124 commit 5d0e218
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,16 +611,14 @@ public void onAnimationRepeat(Animator animation) {
private final class SweepRestartAction implements Runnable {
@Override
public void run() {
boolean growMode = !mIndeterminateGrowMode;
mIndeterminateGrowMode = growMode;
if (growMode) {
mIndeterminateGrowMode = !mIndeterminateGrowMode;
if (mIndeterminateGrowMode) {
mIndeterminateOffsetAngle = (mIndeterminateOffsetAngle + mIndeterminateMinimumAngle * 2f) % 360f;
}
ValueAnimator animator = mIndeterminateSweepAnimator;
if (animator.isRunning()) {
animator.cancel();
if (mIndeterminateSweepAnimator.isRunning()) {
mIndeterminateSweepAnimator.cancel();
}
animator.start();
mIndeterminateSweepAnimator.start();
}
}
}

0 comments on commit 5d0e218

Please sign in to comment.