From a1863cf033bb16514cf4c9abeb06cb4a0d7d4897 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Wed, 20 Apr 2016 16:41:17 -0400 Subject: [PATCH] API review feedback for ProgressBar Bug: 28296059 Change-Id: Icb9cfdc799391735a497b16290fa780dddd76e36 --- core/java/android/widget/ProgressBar.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/java/android/widget/ProgressBar.java b/core/java/android/widget/ProgressBar.java index 9c9784b4adf8b..3c967acdfc558 100644 --- a/core/java/android/widget/ProgressBar.java +++ b/core/java/android/widget/ProgressBar.java @@ -1397,6 +1397,10 @@ public class ProgressBar extends View { /** * Sets the current progress to the specified value. Does not do anything * if the progress bar is in indeterminate mode. + *

+ * This method will immediately update the visual position of the progress + * indicator. To animate the visual position to the target value, use + * {@link #setProgress(int, boolean)}}. * * @param progress the new progress, between 0 and {@link #getMax()} * @@ -1412,7 +1416,7 @@ public class ProgressBar extends View { /** * Sets the current progress to the specified value, optionally animating - * between the current and target values. + * the visual position between the current and target values. *

* Animation does not affect the result of {@link #getProgress()}, which * will return the target value immediately after this method is called.