204 Commits

Author SHA1 Message Date
azuo
183901534c Correct the widget layout.
Adjust the layout carefully, so that remote grid views perfectly overlap the bitmap generated from the binding view, whether left-aligned, right-aligned or centered, and regardless of the size of the widget, text, margins or spacing.

Display the clock in the correct text size.
2021-09-17 12:01:41 +08:00
azuo
6d7d90e762 Correct the algorithm to check if to show weather as a glance provider. 2021-09-14 13:49:52 +08:00
azuo
e89b377b68 Fix crash in MainFragment.updateUI() on some devices. 2021-09-14 13:48:23 +08:00
azuo
e0eb6f77da Merge branch 'patch-4' into patch-develop 2021-09-14 13:40:14 +08:00
azuo
43c08204c3 Merge branch 'patch-3' into patch-develop 2021-09-14 13:39:59 +08:00
azuo
6f125573e0 Merge branch 'patch-2' into patch-develop
# Conflicts:
#	app/src/main/java/com/tommasoberlose/anotherwidget/ui/widgets/AlignedWidget.kt
#	app/src/main/java/com/tommasoberlose/anotherwidget/ui/widgets/StandardWidget.kt
2021-09-14 13:39:30 +08:00
azuo
380dc96c40 Merge branch 'patch-1' into patch-develop 2021-09-14 13:38:49 +08:00
azuo
821980e938 Use getBroadcast instead of getActivity for ACTION_REFRESH intents. 2021-09-13 23:34:54 +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
d3b623cf13 Add ACCESS_BACKGROUND_LOCATION permission required by Android 11. 2021-09-13 19:28:47 +08:00
azuo
1389ddbfc0 Avoid the initial vertical position of BottomSheetDialogs being capped. 2021-09-13 11:55:29 +08:00
azuo
0dbbe0e5d2 Fix RenderScript leaks; set a reasonable default value for PREF_TEXT_CLOCK_SIZE. 2021-09-10 23:15:47 +08:00
azuo
818b4ec0ba Avoid redundant updates. 2021-09-04 18:35:39 +08:00
azuo
8c84913cd8 Remove trailing semicolons in code. 2021-09-03 20:54:02 +08:00
azuo
43f085b13c Remove extra spacing after event time when weather disabled. 2021-09-03 20:40:44 +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
azuo
ea0be72478 Do not schedule unnecessary ACTION_ALARM_UPDATE alarm. 2021-09-02 13:54:24 +08:00
Azuo
7b93548b0b Use any available Maps app, not just explicitly Google Maps. 2021-08-16 12:39:11 +08:00
Azuo
260e36b305 Show & hide all-day events at the right time. 2021-08-15 19:13:46 +08:00
Azuo
c26021de03 Fix #321; Update Simplified Chinese. 2021-08-14 00:55:37 +08:00
Azuo
218dae8cc2 When tapping the event time, it is more reasonable to open the calendar rather than the event details (tap the event title for the details). 2021-08-13 22:10:44 +08:00
Azuo
b3e2d8d843 Fix FontRequest thread leaks and UI bugs related to custom fonts. 2021-08-13 22:09:46 +08:00
Azuo
80d1077dab Make LocationService work in case GMS is not available. 2021-08-12 14:12:30 +08:00
Tommaso Berlose
dd2a74aaf6 Close #310, added weather as glance provider 2021-05-14 17:15:34 +02:00
Tommaso Berlose
fb1953d513 Added custom widget margin and padding, added new preview manager 2021-05-14 16:10:56 +02:00
Tommaso Berlose
2578566659 Fixed #317 2021-05-11 20:56:21 +02:00
Tommaso Berlose
61fc0da8d0 New icon 2021-05-11 18:46:08 +02:00
Tommaso Berlose
5d07cc8d73 Added color copy/paste, better size and color text selection 2021-05-07 17:19:23 +02:00
Tommaso Berlose
b93443b736 Added right-aligned widget 2021-05-07 12:21:31 +02:00
Tommaso Berlose
9842ba3ea9 Bugfixes 2021-05-06 17:29:29 +02:00
Tommaso Berlose
75aba66987 Bugfixes 2021-05-05 18:23:01 +02:00
Tommaso Berlose
b61fbd193c Added single multiple clock 2021-05-05 14:53:43 +02:00
Tommaso Berlose
67abd14bb1 Bugfixes 2021-05-05 12:11:51 +02:00
Tommaso Berlose
854cfac28c Bugfixes 2021-05-05 10:54:09 +02:00
Tommaso Berlose
1f22426dec Update align support 2021-05-04 18:32:20 +02:00
Tommaso Berlose
40644f3657 update widget 2021-05-03 23:01:54 +02:00
Tommaso Berlose
81578f5f4a Fix #282, bug fixes 2021-01-24 12:48:34 +01:00
Tommaso Berlose
57eecd630d Fix #275 2021-01-14 17:41:33 +01:00
Tommaso Berlose
cce86a970c Fix #278 2021-01-14 14:14:00 +01:00
Tommaso Berlose
1721dff3cf Fix #273, fix #271 2021-01-12 15:42:16 +01:00
Tommaso Berlose
c389d50b09 Fix background service error 2021-01-12 09:51:00 +01:00
Tommaso Berlose
06583197c7 Fix widget refresh intent 2021-01-11 09:42:55 +01:00
Tommaso Berlose
10a3204808 Fix #263 2021-01-11 01:30:31 +01:00
Tommaso Berlose
ed9a4042c8 Fix #259 2021-01-10 17:56:48 +01:00
Tommaso Berlose
8dce8a74b3 Fix #242 2021-01-10 17:20:52 +01:00
Tommaso Berlose
24bb811f93 Fix update calendar service 2021-01-10 15:54:54 +01:00
Tommaso Berlose
34fb35f2ab Fix #262 2021-01-10 12:48:17 +01:00
Tommaso Berlose
108ecdece0 Update transitions 2021-01-10 02:08:15 +01:00
Tommaso Berlose
e3f4995e93 Fix icon selector 2021-01-10 00:41:36 +01:00
Tommaso Berlose
e9effbe799 Update animations 2021-01-09 20:26:23 +01:00