From 941e823374bc87dc6b60030dddce4a069268d56d Mon Sep 17 00:00:00 2001 From: Matt Fulgo Date: Tue, 19 Aug 2025 22:23:06 -0400 Subject: [PATCH] Allows widget on Samsung cover screens Adds meta-data to the widget, allowing it to be used on the cover screen of Samsung devices such as the Flip. The widget renders as a 4x4 grid (not an optimal layout) but functions for launching the most recent audiobook or controlling playback. --- android/app/src/main/AndroidManifest.xml | 4 ++++ android/app/src/main/res/xml/media_player_widget_info.xml | 2 +- android/app/src/main/res/xml/samsung_cover_widget_info.xml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 android/app/src/main/res/xml/samsung_cover_widget_info.xml diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 1d497a60..67a6f3c5 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -36,6 +36,10 @@ + + diff --git a/android/app/src/main/res/xml/media_player_widget_info.xml b/android/app/src/main/res/xml/media_player_widget_info.xml index 45dab3b3..dc352576 100644 --- a/android/app/src/main/res/xml/media_player_widget_info.xml +++ b/android/app/src/main/res/xml/media_player_widget_info.xml @@ -11,4 +11,4 @@ android:targetCellWidth="4" android:targetCellHeight="1" android:updatePeriodMillis="86400000" - android:widgetCategory="home_screen" /> + android:widgetCategory="home_screen|keyguard" /> diff --git a/android/app/src/main/res/xml/samsung_cover_widget_info.xml b/android/app/src/main/res/xml/samsung_cover_widget_info.xml new file mode 100644 index 00000000..c6647520 --- /dev/null +++ b/android/app/src/main/res/xml/samsung_cover_widget_info.xml @@ -0,0 +1,4 @@ + +