mirror of
https://github.com/apognu/otter
synced 2025-02-24 22:17:38 +01:00
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…
x
Reference in New Issue
Block a user