summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2012-09-23 11:10:40 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-23 11:10:40 -0700
commit5c2591e6eff3233c7f9c5bbae0dd20c1320f0854 (patch)
tree47c43c26679edb66f8bdb5e355ad015f7c171689 /tests
parent067af95257e1f8007a3a1777c257760aed9947af (diff)
parentd88e3054d08b1f821bb2e27b2647aa16a60d8742 (diff)
downloadframeworks_base-5c2591e6eff3233c7f9c5bbae0dd20c1320f0854.zip
frameworks_base-5c2591e6eff3233c7f9c5bbae0dd20c1320f0854.tar.gz
frameworks_base-5c2591e6eff3233c7f9c5bbae0dd20c1320f0854.tar.bz2
Merge "Fix bug #7206086 NumberPicker widget should use locale digits" into jb-mr1-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/HwAccelerationTest/src/com/android/test/hwui/DatePicker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/DatePicker.java b/tests/HwAccelerationTest/src/com/android/test/hwui/DatePicker.java
index db247e3..eb4e3fd 100644
--- a/tests/HwAccelerationTest/src/com/android/test/hwui/DatePicker.java
+++ b/tests/HwAccelerationTest/src/com/android/test/hwui/DatePicker.java
@@ -102,7 +102,7 @@ public class DatePicker extends FrameLayout {
inflater.inflate(R.layout.date_picker, this, true);
mDayPicker = (NumberPicker) findViewById(R.id.day);
- mDayPicker.setFormatter(NumberPicker.TWO_DIGIT_FORMATTER);
+ mDayPicker.setFormatter(NumberPicker.getTwoDigitFormatter());
mDayPicker.setOnLongPressUpdateInterval(100);
mDayPicker.setOnValueChangedListener(new NumberPicker.OnValueChangeListener() {
public void onValueChange(NumberPicker picker, int oldVal, int newVal) {
@@ -111,7 +111,7 @@ public class DatePicker extends FrameLayout {
}
});
mMonthPicker = (NumberPicker) findViewById(R.id.month);
- mMonthPicker.setFormatter(NumberPicker.TWO_DIGIT_FORMATTER);
+ mMonthPicker.setFormatter(NumberPicker.getTwoDigitFormatter());
DateFormatSymbols dfs = new DateFormatSymbols();
String[] months = dfs.getShortMonths();