[PR #597] [MERGED] Android Home Screen Widget #1465

Closed
opened 2026-04-24 23:58:40 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf-app/pull/597
Author: @KeyboardHammer
Created: 2/22/2023
Status: Merged
Merged: 2/26/2023
Merged by: @advplyr

Base: masterHead: widget


📝 Commits (4)

  • bc6ef96 Android Home Screen Widget
  • a5ba6c6 redo widget layout, hide buttons on force close
  • 0158ccc Hide widget action buttons when app closes
  • f5ca306 Update android widget sizing, hide buttons on app close, and initialize when added

📊 Changes

18 files changed (+381 additions, -190 deletions)

View changed files

📝 android/app/src/main/AndroidManifest.xml (+11 -11)
android/app/src/main/java/com/audiobookshelf/app/MediaPlayerWidget.kt (+123 -0)
android/app/src/main/java/com/audiobookshelf/app/NewAppWidget.kt (+0 -96)
📝 android/app/src/main/java/com/audiobookshelf/app/player/MediaSessionCallback.kt (+10 -0)
📝 android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt (+16 -3)
android/app/src/main/res/drawable-nodpi/example_appwidget_preview.png (+0 -0)
android/app/src/main/res/drawable-nodpi/media_player_widget_preview.png (+0 -0)
android/app/src/main/res/drawable/icon_monochrome.xml (+9 -0)
android/app/src/main/res/layout/media_player_widget.xml (+108 -0)
android/app/src/main/res/layout/new_app_widget.xml (+0 -26)
android/app/src/main/res/values-night-v31/themes.xml (+10 -0)
android/app/src/main/res/values-v31/styles.xml (+16 -0)
android/app/src/main/res/values-v31/themes.xml (+11 -0)
📝 android/app/src/main/res/values/attrs.xml (+8 -6)
📝 android/app/src/main/res/values/styles.xml (+34 -25)
📝 android/app/src/main/res/values/themes.xml (+11 -11)
android/app/src/main/res/xml/media_player_widget_info.xml (+14 -0)
android/app/src/main/res/xml/new_app_widget_info.xml (+0 -12)

📄 Description

Implements the rest of the existing partial widget implementation, I did rename the existing files from NewAppWidget to MediaPlayerWidget.

The Widget is 4x1 but can be resized to 5x1
Screenshot2


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf-app/pull/597 **Author:** [@KeyboardHammer](https://github.com/KeyboardHammer) **Created:** 2/22/2023 **Status:** ✅ Merged **Merged:** 2/26/2023 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `widget` --- ### 📝 Commits (4) - [`bc6ef96`](https://github.com/advplyr/audiobookshelf-app/commit/bc6ef964655dd279037198a0728ff3a11ea0a63c) Android Home Screen Widget - [`a5ba6c6`](https://github.com/advplyr/audiobookshelf-app/commit/a5ba6c64c963cb077fe064bcb01d0fe23057e902) redo widget layout, hide buttons on force close - [`0158ccc`](https://github.com/advplyr/audiobookshelf-app/commit/0158ccc4c8d9028ea70dcaeb6eda7d53a8dc8c65) Hide widget action buttons when app closes - [`f5ca306`](https://github.com/advplyr/audiobookshelf-app/commit/f5ca30620f9d1ce93563076bfcebe77a3aad7330) Update android widget sizing, hide buttons on app close, and initialize when added ### 📊 Changes **18 files changed** (+381 additions, -190 deletions) <details> <summary>View changed files</summary> 📝 `android/app/src/main/AndroidManifest.xml` (+11 -11) ➕ `android/app/src/main/java/com/audiobookshelf/app/MediaPlayerWidget.kt` (+123 -0) ➖ `android/app/src/main/java/com/audiobookshelf/app/NewAppWidget.kt` (+0 -96) 📝 `android/app/src/main/java/com/audiobookshelf/app/player/MediaSessionCallback.kt` (+10 -0) 📝 `android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt` (+16 -3) ➖ `android/app/src/main/res/drawable-nodpi/example_appwidget_preview.png` (+0 -0) ➕ `android/app/src/main/res/drawable-nodpi/media_player_widget_preview.png` (+0 -0) ➕ `android/app/src/main/res/drawable/icon_monochrome.xml` (+9 -0) ➕ `android/app/src/main/res/layout/media_player_widget.xml` (+108 -0) ➖ `android/app/src/main/res/layout/new_app_widget.xml` (+0 -26) ➕ `android/app/src/main/res/values-night-v31/themes.xml` (+10 -0) ➕ `android/app/src/main/res/values-v31/styles.xml` (+16 -0) ➕ `android/app/src/main/res/values-v31/themes.xml` (+11 -0) 📝 `android/app/src/main/res/values/attrs.xml` (+8 -6) 📝 `android/app/src/main/res/values/styles.xml` (+34 -25) 📝 `android/app/src/main/res/values/themes.xml` (+11 -11) ➕ `android/app/src/main/res/xml/media_player_widget_info.xml` (+14 -0) ➖ `android/app/src/main/res/xml/new_app_widget_info.xml` (+0 -12) </details> ### 📄 Description Implements the rest of the existing partial widget implementation, I did rename the existing files from NewAppWidget to MediaPlayerWidget. The Widget is 4x1 but can be resized to 5x1 ![Screenshot2](https://user-images.githubusercontent.com/61483659/220522397-3d000169-0715-4530-b09d-3c94ea258d34.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-24 23:58:40 +02:00
adam closed this issue 2026-04-24 23:58:40 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#1465