Fix for #12945: ProgressBar.setMax() will always redraw.

Fix for issue #12945: Changing the maximum of a progress bar does
not cause it to be redrawn, even though a new maximum changes the
position of the current progress in relation to its maximum. With this fix,
setMax() will always cause refreshProgress() to be called if the maximum is
different than it was before.

Change-Id: I971ec3302953bcadc0aac3dd8241481bab2b5a91
This commit is contained in:
Michael Krehan
2011-02-17 20:04:27 -08:00
parent 93552de8e3
commit 58e3822b59

View File

@@ -666,8 +666,8 @@ public class ProgressBar extends View {
if (mProgress > max) {
mProgress = max;
refreshProgress(R.id.progress, mProgress, false);
}
refreshProgress(R.id.progress, mProgress, false);
}
}