diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-09-23 11:10:40 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-23 11:10:40 -0700 |
commit | 5c2591e6eff3233c7f9c5bbae0dd20c1320f0854 (patch) | |
tree | 47c43c26679edb66f8bdb5e355ad015f7c171689 /tests | |
parent | 067af95257e1f8007a3a1777c257760aed9947af (diff) | |
parent | d88e3054d08b1f821bb2e27b2647aa16a60d8742 (diff) | |
download | frameworks_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.java | 4 |
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(); |