commit | 9d1c03904c01b57f9b67e7b002a002f224977ddd | [log] [tgz] |
---|---|---|
author | Sebastiano Barezzi <seba@sebaubuntu.dev> | Wed Oct 30 12:19:30 2024 +0100 |
committer | Sebastiano Barezzi <seba@sebaubuntu.dev> | Sun Nov 03 19:09:08 2024 +0100 |
tree | 11054229a1dd409418ab8c5e1e4bdc72467db740 | |
parent | f5d486a91ae18e59b6a76fd3b18eb5c23b9ce23b [diff] |
Twelve: Sort album's audios by track number While we don't have a sorting UI Change-Id: I654ba42790e593472c68392554a8b4af60e30603
diff --git a/app/src/main/java/org/lineageos/twelve/datasources/LocalDataSource.kt b/app/src/main/java/org/lineageos/twelve/datasources/LocalDataSource.kt index cf09ce5..47369ff 100644 --- a/app/src/main/java/org/lineageos/twelve/datasources/LocalDataSource.kt +++ b/app/src/main/java/org/lineageos/twelve/datasources/LocalDataSource.kt
@@ -297,6 +297,9 @@ ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS to arrayOf( ContentUris.parseId(albumUri).toString(), ), + ContentResolver.QUERY_ARG_SORT_COLUMNS to arrayOf( + MediaStore.Audio.AudioColumns.TRACK, + ) ) ).mapEachRow(audiosProjection, mapAudio) ) { albums, audios ->