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 8b1b3e3 commit 28d28b5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,6 @@ public void onAnimationStart(Animator animation) {

@Override
public void onAnimationEnd(Animator animation) {
boolean growMode = !mIndeterminateGrowMode;
mIndeterminateGrowMode = growMode;
if (growMode) {
mIndeterminateOffsetAngle = (mIndeterminateOffsetAngle + mIndeterminateMinimumAngle * 2f) % 360f;
}
if (!mCancelled) {
post(mSweepRestartAction);
}
Expand All @@ -616,6 +611,11 @@ public void onAnimationRepeat(Animator animation) {
private final class SweepRestartAction implements Runnable {
@Override
public void run() {
boolean growMode = !mIndeterminateGrowMode;
mIndeterminateGrowMode = growMode;
if (growMode) {
mIndeterminateOffsetAngle = (mIndeterminateOffsetAngle + mIndeterminateMinimumAngle * 2f) % 360f;
}
mIndeterminateSweepAnimator.start();
}
}
Expand Down

0 comments on commit 28d28b5

Please sign in to comment.