From d88e3054d08b1f821bb2e27b2647aa16a60d8742 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Fri, 21 Sep 2012 12:15:23 -0700 Subject: Fix bug #7206086 NumberPicker widget should use locale digits - fix for having the TwoDigitFormatter being able to be recreated if the locale is changed - accept now also the Arabic and Persian digits Change-Id: Ifbf7e274d971008f4a5782402d4b76d9472b68fc --- tests/HwAccelerationTest/src/com/android/test/hwui/DatePicker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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(); -- cgit v1.1