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

Commit f4c2a72e authored by James Lemieux's avatar James Lemieux Committed by android-build-merger
Browse files

Merge "Fix creation of first timer via voice" into ub-deskclock-dazzle

am: 9951f6f4

* commit '9951f6f4':
  Fix creation of first timer via voice
parents a28f65f3 9951f6f4
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -160,16 +160,21 @@ public class TimerFragment extends DeskClockFragment {
            intent.removeExtra(HandleDeskClockApiCalls.EXTRA_TIMER_ID);
        }

        // Either show the view for creating timers or the view of existing timers.
        if (!hasTimers() || createTimer || mTimerSetupState != null) {
        // Choose the view to display in this fragment.
        if (showTimerId != -1) {
            // A specific timer must be shown; show the list of timers.
            showTimersView();
        } else if (!hasTimers() || createTimer || mTimerSetupState != null) {
            // No timers exist, a timer is being created, or the last view was timer setup;
            // show the timer setup view.
            showCreateTimerView();

            // If initial state of the timer setup view exists, set it now.
            if (mTimerSetupState != null) {
                mCreateTimerView.setState(mTimerSetupState);
                mTimerSetupState = null;
            }
        } else {
            // Otherwise, default to showing the list of timers.
            showTimersView();
        }

+1 −1
Original line number Diff line number Diff line
@@ -201,7 +201,7 @@ public class TimerSetupView extends LinearLayout implements Button.OnClickListen
    }

    /**
     * @return an opaque representation of the state of timer setup.
     * @return an opaque representation of the state of timer setup
     */
    public Serializable getState() {
        return Arrays.copyOf(mInput, mInput.length);