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:
@@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="widgets_supported">false</bool>
|
||||
</resources>
|
||||
@@ -4,6 +4,7 @@
|
||||
<!-- Info namespace | App labels -->
|
||||
<string name="info_app_desc">A simple, rational music player for android.</string>
|
||||
<string name="info_channel_name">Music Playback</string>
|
||||
<string name="info_widget_minimal">Minimal</string>
|
||||
|
||||
<!-- Label Namespace | Static Labels -->
|
||||
<string name="label_retry">Retry</string>
|
||||
|
||||
@@ -42,4 +42,10 @@
|
||||
<item name="colorSurface">@color/surface_black</item>
|
||||
<item name="materialAlertDialogTheme">@style/Theme.CustomDialog.Black</item>
|
||||
</style>
|
||||
|
||||
<!--
|
||||
Theming widgets is technically possible below Android 10, but its too much of a hassle.
|
||||
Default to a light blue theme.
|
||||
-->
|
||||
<style name="Theme.Widget" parent="@style/Theme.Blue" />
|
||||
</resources>
|
||||
Reference in New Issue
Block a user