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

Commit 6b7d6b9b authored by Daria Evdokimova's avatar Daria Evdokimova
Browse files

Canceling PendingIntent

This is necessary to make the tests in ag/727375 work
for when there shouldn't be a PendingIntent for
a stopped timer.

Change-Id: Ia07f4e32ec9784c6b807f278cdb1a9464f004f37
parent 5602815a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -241,7 +241,10 @@ public class TimerReceiver extends BroadcastReceiver {
                Log.d(TAG, "Setting times up to " + nextTimesup);
            }
        } else {
            // if no timer is found Pending Intents should be canceled
            // to keep the internal state consistent with the UI
            mngr.cancel(p);
            p.cancel();
            if (Timers.LOGGING) {
                Log.v(TAG, "no next times up");
            }