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

Commit fb96a8f8 authored by Daria Evdokimova's avatar Daria Evdokimova Committed by Android Git Automerger
Browse files

am 213cb2aa: am 6e494b5a: am 3b7ba597: am 4ed569b3: Fixing bug for RESET_TIMER and STOP_TIMER

* commit '213cb2aa':
  Fixing bug for RESET_TIMER and STOP_TIMER
parents 0a95224f 213cb2aa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -285,7 +285,7 @@ public class HandleDeskClockApiCalls extends Activity {
                    Voice.notifySuccess(mActivity, reason);
                    LogUtils.i(reason);
                    timer.setState(TimerObj.STATE_RESTART);
                    timer.mTimeLeft = timer.mOriginalLength;
                    timer.mTimeLeft = timer.mSetupLength;
                    timer.writeToSharedPref(prefs);
                    Events.sendTimerEvent(R.string.action_reset, R.string.label_intent);
                    break;
@@ -310,7 +310,7 @@ public class HandleDeskClockApiCalls extends Activity {
                        // if the time is up on the timer
                        // restart it and reset the length
                        timer.setState(TimerObj.STATE_RESTART);
                        timer.mTimeLeft = timer.mOriginalLength;
                        timer.mTimeLeft = timer.mSetupLength;
                    }
                    timer.writeToSharedPref(prefs);
                    Events.sendTimerEvent(R.string.action_stop, R.string.label_intent);