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
This commit is contained in:
Svetoslav Ganov
2012-04-12 16:51:04 -07:00
parent f21bea245a
commit fac14f9731

View File

@@ -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();
}
/**