Fixed bug where progress bar didn't fade out always

This commit is contained in:
Anthony Restaino 2015-03-24 20:43:25 -04:00
parent 0116481022
commit 32f4a457bb

View File

@ -126,9 +126,10 @@ public class AnimatedProgressBar extends LinearLayout {
// previous progress
mDrawWidth = 0;
} else if (progress == mProgress) { // we don't need to go any farther if the progress is unchanged
if (progress == 100) {
fadeOut();
}
return;
}
mProgress = progress; // save the progress