Minor code cleanup
This commit is contained in:
parent
e8bf7f264d
commit
0e96cf27d6
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue