You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue:
If the app start to show the progress view, and then stop it immediately, the progress can't not be stopped. Root Cause:
ProgressArcView.show() method, it will delay the running task 150 ms, so during the time, if the app call the method ProgressArcView.stop(), will cause progress view still in progress. Solution:
private Runnable animationRunnable = new Runnable() {
public void run() {
ProgressArcView.this.setAlpha(1.0F);
ProgressArcView.this.getDrawable().reset();
}
};
public void show() {
postDelayed(animationRunnable, SHOW_SCALE_ANIM_DELAY);
}
Issue:
If the app start to show the progress view, and then stop it immediately, the progress can't not be stopped.
Root Cause:
ProgressArcView.show() method, it will delay the running task 150 ms, so during the time, if the app call the method ProgressArcView.stop(), will cause progress view still in progress.
Solution:
private Runnable animationRunnable = new Runnable() {
public void run() {
ProgressArcView.this.setAlpha(1.0F);
ProgressArcView.this.getDrawable().reset();
}
};
public void show() {
postDelayed(animationRunnable, SHOW_SCALE_ANIM_DELAY);
}
public void stop() {
removeCallbacks(animationRunnable);
getDrawable().stop();
ValueAnimator fadeOutAnim = ObjectAnimator.ofFloat(this, "alpha", 1, 0);
fadeOutAnim.setDuration(100).start();
}
The text was updated successfully, but these errors were encountered: