Minor code cleanup

This commit is contained in:
Naveen 2023-07-17 01:06:56 +05:30
parent e8bf7f264d
commit 0e96cf27d6
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3

View file

@ -223,8 +223,7 @@ class TracksActivity : SimpleActivity() {
albumTracks.sortWith(compareBy({ it.trackId }, { it.title.lowercase() }))
tracks.addAll(albumTracks)
val coverArt = ContentUris.withAppendedId(artworkUri, album.id).toString()
val header = AlbumHeader(album.id, album.title, coverArt, album.year, tracks.size, tracks.sumOf { it.duration }, album.artist)
val header = AlbumHeader(album.id, album.title, album.coverArt, album.year, tracks.size, tracks.sumOf { it.duration }, album.artist)
listItems.add(header)
listItems.addAll(tracks)
}