Add cover art to album list item

Add cover art to the album list item.
This commit is contained in:
OxygenCobalt
2020-08-24 16:46:40 -06:00
parent acef9550fa
commit 5662725c72
5 changed files with 32 additions and 3 deletions
@@ -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()
}
}