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

Commit 8d659d7d authored by Annie Chin's avatar Annie Chin
Browse files

Cancel times up notification on RESET, DELETE, or DONE.

Bug: 22120450

Previously operated under the assumption that the timer screen
would be open (thus no notification) when dismissing timer from
the wear.

Change-Id: Icde5c5df79f23d744ded119af415d34ba6f18a0e
parent 59aec9e2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -127,6 +127,10 @@ public class TimerReceiver extends BroadcastReceiver {
                || Timers.TIMER_DONE.equals(actionType)) {
            // Stop Ringtone if all timers are not in times-up status
            stopRingtoneIfNoTimesup(context);

            if (t != null) {
                cancelTimesUpNotification(context, t);
            }
        } else if (Timers.NOTIF_TIMES_UP_STOP.equals(actionType)) {
            // Find the timer (if it doesn't exists, it was probably deleted).
            if (t == null) {