From 436722293783f6fcea06e9fccfbf91cc8388597e Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 25 Mar 2014 17:05:43 +0200 Subject: [PATCH] Fix timer bug. --- .../java/za/org/treehouse/hypoalarm/CancelGraceReceiver.java | 1 + 1 file changed, 1 insertion(+) diff --git a/HypoAlarm/src/main/java/za/org/treehouse/hypoalarm/CancelGraceReceiver.java b/HypoAlarm/src/main/java/za/org/treehouse/hypoalarm/CancelGraceReceiver.java index e71dfb4..22828ce 100644 --- a/HypoAlarm/src/main/java/za/org/treehouse/hypoalarm/CancelGraceReceiver.java +++ b/HypoAlarm/src/main/java/za/org/treehouse/hypoalarm/CancelGraceReceiver.java @@ -20,6 +20,7 @@ public class CancelGraceReceiver extends BroadcastReceiver { // Display toast Toast.makeText(context, context.getString(R.string.alarmCancelToast), Toast.LENGTH_LONG).show(); + // Remove notification context.stopService(new Intent(context, AlarmNotify.class)); } } \ No newline at end of file