1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-09 07:01:33 +02:00

Pebble: fix alarm notifications only working one

id -1 means undefined, everything else is liked to a real android notification
This commit is contained in:
Andreas Shimokawa 2017-02-09 15:07:00 +01:00
parent 4f0674d038
commit 436a7ddb24

View File

@ -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);
}