1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-24 22:10:55 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service
Davis Mosenkovs cc5078332b TimeChangeReceiver: Ensure the alarm is set
Ensure TimeChangeReceiver alarm is scheduled when enabling
datetime_synconconnect and registering TimeChangeReceiver broadcast
receiver.

It is important to re-schedule the alarm after registering broadcast
receiver, because:
1. if broadcast receiver was unregistered while previous alarm arrived,
there is no alarm scheduled;
2. re-scheduling the alarm resets the periodic time sync timer when
first device is connected (which is desired).

It is important to re-schedule the alarm when datetime_synconconnect
gets enabled, because there might be no alarm scheduled.

Call onSetTime() when enabling datetime_synconconnect.
2024-02-18 19:12:30 +00:00
..
btbr BtBRQueue: use Handler(Thread) for sending messages and connecting socket 2024-01-17 20:16:38 +00:00
btclassic Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
btle Revert "Device connection: added basic code for scan-reconnect" 2024-02-12 23:30:32 +01:00
devices Add more granular smart wakeup support 2024-02-18 17:24:29 +01:00
receivers Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
serial Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractDeviceSupport.java Revert "Device connection: added basic code for scan-reconnect" 2024-02-12 23:30:32 +01:00
DeviceCommunicationService.java TimeChangeReceiver: Ensure the alarm is set 2024-02-18 19:12:30 +00:00
DeviceSupport.java Revert "Device connection: added basic code for scan-reconnect" 2024-02-12 23:30:32 +01:00
DeviceSupportFactory.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
NotificationCollectorMonitorService.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
ServiceDeviceSupport.java Revert "Device connection: added basic code for scan-reconnect" 2024-02-12 23:30:32 +01:00