mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-15 06:29:24 +01: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:
parent
4f0674d038
commit
436a7ddb24
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user