music: fix other music loading failure from dirs

Turns out there are two ways the selector can go malformed. One was the
complicated issue where you can't resolve a directory, the other was me
*missing a character* and not even building the selector right.
This commit is contained in:
Alexander Capehart 2024-01-14 09:55:43 -07:00
parent 4234f5b8f1
commit f1a6b77d30
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -216,7 +216,7 @@ private constructor(private val cursor: Cursor, volumeManager: VolumeManager) :
var template = ""
for (i in paths.indices) {
val path = paths[i]
template =
template +=
if (args.isEmpty()) {
"(${MediaStore.Audio.AudioColumns.VOLUME_NAME} LIKE ? " +
"AND ${MediaStore.Audio.AudioColumns.RELATIVE_PATH} LIKE ?)"