widgets: backport to <v31

Modify the minimal wdiget so that it can work on Android 11 and below.
Was not actually that hard, mostly changing layouts around all things
considered. This also splits up the default view and the main widget
views, which makes managing UI state much easier.
This commit is contained in:
OxygenCobalt
2021-08-02 08:57:35 -06:00
parent ffebbc2839
commit 8673995630
18 changed files with 136 additions and 82 deletions
-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
Widgets are limited to android 12 until I can find an okay-ish way to backport them.
-->
<bool name="widgets_supported">true</bool>
</resources>
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Widget" parent="@android:style/Theme.DeviceDefault.DayNight">
<item name="colorPrimary">?android:attr/colorAccent</item>
<item name="colorSecondary">?android:attr/colorAccent</item>
</style>
</resources>