mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-16 01:00:17 +01:00
db: carry the sort-name mode through the paging builders
Rebase follow-up for the new SortNameMode preference: pass it into the shared album/artist order functions so downloaded pages honour it too, cover the new _plain indexes in the downloaded artist plan test, and add a downloaded-mode ordering test.
This commit is contained in:
@@ -110,7 +110,11 @@ internal fun albumsPageQuery(
|
||||
sortNameMode: SortNameMode = SortNameMode.SortName,
|
||||
): RoomRawQuery =
|
||||
rawQuery(
|
||||
sql = "SELECT * ${if (downloaded) ALBUMS_FILTER_DOWNLOADED else ALBUMS_FILTER} ORDER BY ${albumOrder(sort, descending, sortNameMode)}",
|
||||
sql = "SELECT * ${if (downloaded) ALBUMS_FILTER_DOWNLOADED else ALBUMS_FILTER} ORDER BY ${albumOrder(
|
||||
sort,
|
||||
descending,
|
||||
sortNameMode,
|
||||
)}",
|
||||
bindings =
|
||||
mapOf(
|
||||
"sourceId" to sourceId,
|
||||
|
||||
Reference in New Issue
Block a user