mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-11 15:48:31 +02:00
Set the notification ID on alarm start
This commit is contained in:
parent
89bf63d540
commit
0042ffc514
@ -48,7 +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;
|
spec.id = lastId;
|
||||||
// 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