summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/ProgressBar.java
diff options
context:
space:
mode:
authorEvan Charlton <evanc@google.com>2010-06-07 10:38:53 -0700
committerEvan Charlton <evanc@google.com>2010-06-07 10:38:53 -0700
commit08e1473ca30ef1756c6694cc1ed0aff27f11807d (patch)
treea018f83475e3bfa8ec6d297431c1512644b0b945 /core/java/android/widget/ProgressBar.java
parenta14aded514540578b7024918c82c81810622a91a (diff)
downloadframeworks_base-08e1473ca30ef1756c6694cc1ed0aff27f11807d.zip
frameworks_base-08e1473ca30ef1756c6694cc1ed0aff27f11807d.tar.gz
frameworks_base-08e1473ca30ef1756c6694cc1ed0aff27f11807d.tar.bz2
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
Diffstat (limited to 'core/java/android/widget/ProgressBar.java')
-rw-r--r--core/java/android/widget/ProgressBar.java3
1 files changed, 2 insertions, 1 deletions
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();
}
/**