mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +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:
@@ -48,6 +48,7 @@ public class AlarmClockReceiver extends BroadcastReceiver {
|
|||||||
lastId = generateId();
|
lastId = generateId();
|
||||||
NotificationSpec spec = new NotificationSpec();
|
NotificationSpec spec = new NotificationSpec();
|
||||||
spec.type = NotificationType.GENERIC_ALARM_CLOCK;
|
spec.type = NotificationType.GENERIC_ALARM_CLOCK;
|
||||||
|
spec.id = -1;
|
||||||
// can we get the alarm title somehow?
|
// can we get the alarm title somehow?
|
||||||
GBApplication.deviceService().onNotification(spec);
|
GBApplication.deviceService().onNotification(spec);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user