Sort album view by track position.
This commit is contained in:
parent
b7db24ea11
commit
fbe5ea4db9
|
@ -25,6 +25,6 @@ class TracksRepository(override val context: Context?, albumId: Int) : Repositor
|
|||
data.map { track ->
|
||||
track.favorite = favorites.contains(track.id)
|
||||
track
|
||||
}
|
||||
}.sortedBy { it.position }
|
||||
}
|
||||
}
|
|
@ -75,6 +75,7 @@ data class Track(
|
|||
val title: String,
|
||||
val artist: Artist,
|
||||
val album: Album,
|
||||
val position: Int,
|
||||
val uploads: List<Upload>
|
||||
) {
|
||||
var current: Boolean = false
|
||||
|
|
Loading…
Reference in New Issue