diff options
author | Svetoslav Ganov <svetoslavganov@google.com> | 2012-04-12 16:51:04 -0700 |
---|---|---|
committer | Svetoslav Ganov <svetoslavganov@google.com> | 2012-04-12 16:57:18 -0700 |
commit | fac14f9731ce7fc765de582c983af751aab697de (patch) | |
tree | 2ac6635e0c1cc7707ebe0763d7168c39095e5151 /core | |
parent | f21bea245a7c305c75906f9c9228ac315e10cd9f (diff) | |
download | frameworks_base-fac14f9731ce7fc765de582c983af751aab697de.zip frameworks_base-fac14f9731ce7fc765de582c983af751aab697de.tar.gz frameworks_base-fac14f9731ce7fc765de582c983af751aab697de.tar.bz2 |
NumberPicker not redrawn when current value is changed via an IME.
1. The NumberPicker scroll wheel was not updated upon value change
via an IME as well as the picker was not redraws after the change.
bug:6291879
Change-Id: I5ba30df42e38cd06fa150328399eb4deeb0b683d
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/widget/NumberPicker.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/java/android/widget/NumberPicker.java b/core/java/android/widget/NumberPicker.java index d897a39..582a62f 100644 --- a/core/java/android/widget/NumberPicker.java +++ b/core/java/android/widget/NumberPicker.java @@ -1096,12 +1096,7 @@ public class NumberPicker extends LinearLayout { * @see #setMaxValue(int) */ public void setValue(int value) { - if (mValue == value) { - return; - } setValueInternal(value, false); - initializeSelectorWheelIndices(); - invalidate(); } /** @@ -1498,6 +1493,8 @@ public class NumberPicker extends LinearLayout { if (notifyChange) { notifyChange(previous, current); } + initializeSelectorWheelIndices(); + invalidate(); } /** |