From 436a7ddb2467cb1f8184abb2f66b941ba86a6da9 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Thu, 9 Feb 2017 15:07:00 +0100 Subject: [PATCH] Pebble: fix alarm notifications only working one id -1 means undefined, everything else is liked to a real android notification --- .../gadgetbridge/externalevents/AlarmClockReceiver.java | 1 + 1 file changed, 1 insertion(+) 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 6753c5edc..b01707c99 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/AlarmClockReceiver.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/AlarmClockReceiver.java @@ -48,6 +48,7 @@ public class AlarmClockReceiver extends BroadcastReceiver { lastId = generateId(); NotificationSpec spec = new NotificationSpec(); spec.type = NotificationType.GENERIC_ALARM_CLOCK; + spec.id = -1; // can we get the alarm title somehow? GBApplication.deviceService().onNotification(spec); }