From 39186964776b80e869b92b10ffef6731757d72f3 Mon Sep 17 00:00:00 2001 From: Rich T Date: Fri, 30 Aug 2024 18:15:47 -0700 Subject: [PATCH 1/2] Do not call setIconBitmap instead of setIconUri if book is local --- .../audiobookshelf/app/player/PlayerNotificationService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt b/android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt index 0fbf9576..73affd8f 100644 --- a/android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt +++ b/android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt @@ -320,11 +320,11 @@ class PlayerNotificationService : MediaBrowserServiceCompat() { val mediaDescriptionBuilder = MediaDescriptionCompat.Builder() .setExtras(extra) .setTitle(currentPlaybackSession!!.displayTitle) - .setIconUri(coverUri) +// .setIconUri(coverUri) bitmap?.let { mediaDescriptionBuilder.setIconBitmap(it) - } + } ?: mediaDescriptionBuilder.setIconUri(coverUri) return mediaDescriptionBuilder.build() } From 8c77a19eb61ccdb48c889ff26df4c24b46eafc23 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 31 Aug 2024 09:33:24 -0500 Subject: [PATCH 2/2] Update android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt --- .../com/audiobookshelf/app/player/PlayerNotificationService.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt b/android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt index 73affd8f..53d5e6a2 100644 --- a/android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt +++ b/android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt @@ -320,7 +320,6 @@ class PlayerNotificationService : MediaBrowserServiceCompat() { val mediaDescriptionBuilder = MediaDescriptionCompat.Builder() .setExtras(extra) .setTitle(currentPlaybackSession!!.displayTitle) -// .setIconUri(coverUri) bitmap?.let { mediaDescriptionBuilder.setIconBitmap(it)