Add cover art to album list item
Add cover art to the album list item.
This commit is contained in:
@@ -11,6 +11,11 @@ class AlbumViewHolder(
|
||||
// Bind the view w/new data
|
||||
fun bind(album: Album) {
|
||||
binding.album = album
|
||||
|
||||
// Set an album cover [If possible]
|
||||
album.cover?.let { cover ->
|
||||
binding.cover.setImageBitmap(cover)
|
||||
}
|
||||
binding.executePendingBindings()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user