Do not call setIconBitmap instead of setIconUri if book is local

This commit is contained in:
Rich T 2024-08-30 18:15:47 -07:00
parent 584023380c
commit 3918696477

View file

@ -320,11 +320,11 @@ class PlayerNotificationService : MediaBrowserServiceCompat() {
val mediaDescriptionBuilder = MediaDescriptionCompat.Builder() val mediaDescriptionBuilder = MediaDescriptionCompat.Builder()
.setExtras(extra) .setExtras(extra)
.setTitle(currentPlaybackSession!!.displayTitle) .setTitle(currentPlaybackSession!!.displayTitle)
.setIconUri(coverUri) // .setIconUri(coverUri)
bitmap?.let { bitmap?.let {
mediaDescriptionBuilder.setIconBitmap(it) mediaDescriptionBuilder.setIconBitmap(it)
} } ?: mediaDescriptionBuilder.setIconUri(coverUri)
return mediaDescriptionBuilder.build() return mediaDescriptionBuilder.build()
} }