14 Commits

Author SHA1 Message Date
azuo
fb3f28d035 Make weather updates more reliable 2021-10-15 14:42:38 +08:00
azuo
d8e204c5d9 Optimize background Workers, remove redundant JobServices
1. Adapt the location callback in WeatherWorker to coroutines
2. Merge EventListenerJob into UpdateCalendarWorker
3. Remove BatteryListenerJob, as it's impossible to use Jobs to detect battery status
2021-10-07 16:03:07 +08:00
azuo
388653f62b Meet some mandatory requirements for migrating to Android 12
1. Replace foreground services with Workers
2. Support approximate location
3. Fallback to inexact alarms if the SCHEDULE_EXACT_ALARM permission is revoked
4. Specify the mutability of each PendingIntent
5. Explicitly declare the android:exported attribute for app components that use intent filters
2021-10-03 16:34:56 +08:00
azuo
9f47d626a9 setExact is more reliable than setRepeating on some ROMs (e.g., MIUI). 2021-09-13 23:24:58 +08:00
azuo
3ab42fd163 Correct and improve calendar events updating algorithm.
1. UpdateCalendarService will fetch all events from now to the next fetch time + Preferences.showUntil, so that EventRepository holds all events need to be shown before the next fetch;
2. Every event is updated 1 minute after the corresponding time span, to make the actual time difference consistent with the displayed getRelativeTimeSpanString;
3. Update events only when necessary, eliminate redundant alarms; cancel all update alarms when showEvents is turned off.
2021-09-03 18:20:01 +08:00
Tommaso Berlose
6a912ee003 Add a few more providers and fix multiple bugs 2020-10-11 21:59:44 +02:00
Tommaso Berlose
1644fb7682 Update the providers 2020-10-06 18:11:53 +02:00
Tommaso Berlose
15884bd9b2 Fix helper 2020-05-07 16:19:30 +02:00
Tommaso Berlose
ea372dd76d Remove workers. Fix #71 2020-05-06 21:25:23 +02:00
Tommaso Berlose
7076311e94 Add workers 2020-05-06 20:58:32 +02:00
Tommaso Berlose
f5c4ee7eb0 Bugfixes 2020-05-05 14:29:30 +02:00
Tommaso Berlose
4feb72381d Update the bitmap factory and the location request. Fixed #53 2020-05-05 01:32:51 +02:00
Tommaso Berlose
9a978ac8d3 Release v2.0.1 2020-05-03 17:54:35 +02:00
Tommaso Berlose
3aecf9851a Moving to version 2.0 2020-05-01 01:09:56 +02:00