Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4857fb47 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

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: I498a020e6ca4709ba76a2cbfa9a067e570b90e92
parent b18de8cc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ public class DatePicker extends FrameLayout {

        mPickerContainer = (LinearLayout) findViewById(R.id.parent);
        mDayPicker = (NumberPicker) findViewById(R.id.day);
        mDayPicker.setFormatter(NumberPicker.TWO_DIGIT_FORMATTER);
        mDayPicker.setFormatter(NumberPicker.getTwoDigitFormatter());
        mDayPicker.setOnLongPressUpdateInterval(100);
        mDayPicker.setOnValueChangedListener(new OnValueChangeListener() {
            @Override
@@ -120,7 +120,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();