mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-30 06:39:35 +02:00
Do not call setIconBitmap instead of setIconUri if book is local
This commit is contained in:
parent
584023380c
commit
3918696477
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue