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

Commit e7af0d28 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am 340df6c4: am 4d33a8ab: am fa6d6256: Merge "change "next" to "done" in...

am 340df6c4: am 4d33a8ab: am fa6d6256: Merge "change "next" to "done" in minute IME option under 24-hour format"

* commit '340df6c4':
  change "next" to "done" in minute IME option under 24-hour format
parents fa52a4aa 340df6c4
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -237,6 +237,7 @@ public class TimePicker extends FrameLayout {

        // update controls to initial state
        updateHourControl();
        updateMinuteControl();
        updateAmPmControl();

        setOnTimeChangedListener(NO_OP_CHANGE_LISTENER);
@@ -428,6 +429,7 @@ public class TimePicker extends FrameLayout {
        updateHourControl();
        // set value after spinner range is updated
        setCurrentHour(currentHour);
        updateMinuteControl();
        updateAmPmControl();
    }

@@ -508,6 +510,14 @@ public class TimePicker extends FrameLayout {
        }
    }

    private void updateMinuteControl() {
        if (is24HourView()) {
            mMinuteSpinnerInput.setImeOptions(EditorInfo.IME_ACTION_DONE);
        } else {
            mMinuteSpinnerInput.setImeOptions(EditorInfo.IME_ACTION_NEXT);
        }
    }

    private void updateAmPmControl() {
        if (is24HourView()) {
            if (mAmPmSpinner != null) {