Merge "Load album art from URIs first" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
233bc668c5
@@ -550,13 +550,13 @@ class MediaDataManager(
|
||||
|
||||
// Album art
|
||||
val notif: Notification = sbn.notification
|
||||
var artworkBitmap = metadata?.getBitmap(MediaMetadata.METADATA_KEY_ART)
|
||||
var artworkBitmap = metadata?.let { loadBitmapFromUri(it) }
|
||||
if (artworkBitmap == null) {
|
||||
artworkBitmap = metadata?.getBitmap(MediaMetadata.METADATA_KEY_ART)
|
||||
}
|
||||
if (artworkBitmap == null) {
|
||||
artworkBitmap = metadata?.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART)
|
||||
}
|
||||
if (artworkBitmap == null && metadata != null) {
|
||||
artworkBitmap = loadBitmapFromUri(metadata)
|
||||
}
|
||||
val artWorkIcon = if (artworkBitmap == null) {
|
||||
notif.getLargeIcon()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user