From 08e1473ca30ef1756c6694cc1ed0aff27f11807d Mon Sep 17 00:00:00 2001 From: Evan Charlton Date: Mon, 7 Jun 2010 10:38:53 -0700 Subject: Invalidate the ProgressBar when changing animation states When changing a ProgressBar from indeterminate to determinate, the display was not being invalidated correctly and would freeze the progress bar. Bug: 1296117 Change-Id: I2e0a9b76da919b5388f1dbc1c8f4b030355eb8ce --- core/java/android/widget/ProgressBar.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/java/android') diff --git a/core/java/android/widget/ProgressBar.java b/core/java/android/widget/ProgressBar.java index 8e9eb05..71f0c2f 100644 --- a/core/java/android/widget/ProgressBar.java +++ b/core/java/android/widget/ProgressBar.java @@ -715,8 +715,8 @@ public class ProgressBar extends View { mAnimation.setDuration(mDuration); mAnimation.setInterpolator(mInterpolator); mAnimation.setStartTime(Animation.START_ON_FIRST_FRAME); - postInvalidate(); } + postInvalidate(); } /** @@ -729,6 +729,7 @@ public class ProgressBar extends View { ((Animatable) mIndeterminateDrawable).stop(); mShouldStartAnimationDrawable = false; } + postInvalidate(); } /** -- cgit v1.1