From 0042ffc5140a4b46bcf95792f803c6b590920a89 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Fri, 10 Feb 2017 22:52:55 +0100 Subject: [PATCH] Set the notification ID on alarm start --- .../gadgetbridge/externalevents/AlarmClockReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/AlarmClockReceiver.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/AlarmClockReceiver.java index b01707c99..96a07295e 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/AlarmClockReceiver.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/AlarmClockReceiver.java @@ -48,7 +48,7 @@ public class AlarmClockReceiver extends BroadcastReceiver { lastId = generateId(); NotificationSpec spec = new NotificationSpec(); spec.type = NotificationType.GENERIC_ALARM_CLOCK; - spec.id = -1; + spec.id = lastId; // can we get the alarm title somehow? GBApplication.deviceService().onNotification(spec); }