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

Commit df7f3705 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix TimePicker keyboard UI num digits for min"

parents c1de91c1 93ac6d01
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -174,7 +174,8 @@ public class TextInputTimePickerView extends RelativeLayout {
     */
    void updateTextInputValues(int localizedHour, int minute, int amOrPm, boolean is24Hour,
            boolean hourFormatStartsAtZero) {
        final String format = "%d";
        final String hourFormat = "%d";
        final String minuteFormat = "%02d";

        mIs24Hour = is24Hour;
        mHourFormatStartsAtZero = hourFormatStartsAtZero;
@@ -187,8 +188,8 @@ public class TextInputTimePickerView extends RelativeLayout {
            mAmPmSpinner.setSelection(1);
        }

        mHourEditText.setText(String.format(format, localizedHour));
        mMinuteEditText.setText(String.format(format, minute));
        mHourEditText.setText(String.format(hourFormat, localizedHour));
        mMinuteEditText.setText(String.format(minuteFormat, minute));

        if (mErrorShowing) {
            validateInput();