mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
fix: improve thumbnail quality in notification
This commit is contained in:
parent
5b5a644cce
commit
698f783df3
@ -288,6 +288,8 @@ class NowPlayingNotification(
|
||||
builder.putString(MediaMetadataCompat.METADATA_KEY_ALBUM_ART_URI, it)
|
||||
}
|
||||
|
||||
builder.putBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART, notificationBitmap)
|
||||
|
||||
val playerDuration = player.duration
|
||||
|
||||
if (playerDuration != C.TIME_UNSET) {
|
||||
@ -415,6 +417,7 @@ class NowPlayingNotification(
|
||||
}
|
||||
}
|
||||
.build()
|
||||
mediaSession.setMetadata(getMetadataFromPlayer(player.mediaMetadata))
|
||||
nManager.notify(PLAYER_NOTIFICATION_ID, notification)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user