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

Commit 4f911e1c authored by Aurimas Liutikas's avatar Aurimas Liutikas Committed by Android (Google) Code Review
Browse files

Merge "Fix toggling of AM/PM of TimePicker using hardware keyboard."

parents 75af69c9 c51c5f29
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -177,15 +177,15 @@ public class TextInputTimePickerView extends RelativeLayout {

        mAmPmSpinner.setVisibility(is24Hour ? View.INVISIBLE : View.VISIBLE);

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

        if (amOrPm == AM) {
            mAmPmSpinner.setSelection(0);
        } else {
            mAmPmSpinner.setSelection(1);
        }

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

        if (mErrorShowing) {
            validateInput();
        }