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

Commit 4ed569b3 authored by Daria Evdokimova's avatar Daria Evdokimova
Browse files

Fixing bug for RESET_TIMER and STOP_TIMER

b/22469477

Change-Id: I3a465875b1b8e2f37b20834873649d02a687545b
parent 8d915492
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);