Skip to content

Commit

Permalink
Merge pull request #1303 from Sp4rky001/Cover-Image-in-Downloaded-Aud…
Browse files Browse the repository at this point in the history
…iobook-missing-in-Android-Auto-#141

Do not call setIconBitmap instead of setIconUri if book is local
  • Loading branch information
advplyr authored Aug 31, 2024
2 parents 5840233 + 8c77a19 commit 2a737a9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,10 @@ class PlayerNotificationService : MediaBrowserServiceCompat() {
val mediaDescriptionBuilder = MediaDescriptionCompat.Builder()
.setExtras(extra)
.setTitle(currentPlaybackSession!!.displayTitle)
.setIconUri(coverUri)

bitmap?.let {
mediaDescriptionBuilder.setIconBitmap(it)
}
} ?: mediaDescriptionBuilder.setIconUri(coverUri)

return mediaDescriptionBuilder.build()
}
Expand Down

0 comments on commit 2a737a9

Please sign in to comment.