music: fix data selector creation

More or less, the paths being selected for were extremely malformed,
stuff like storage/emulated/0Music. This completely broke music folders
below API 29.
This commit is contained in:
Alexander Capehart 2024-01-14 11:00:52 -07:00
parent 3d1fa6e4ff
commit 07acb4f5b9
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -142,7 +142,7 @@ private constructor(private val cursor: Cursor, volumeManager: VolumeManager) :
} else { } else {
" OR ${MediaStore.Audio.AudioColumns.DATA} LIKE ?" " OR ${MediaStore.Audio.AudioColumns.DATA} LIKE ?"
} }
args.add("${volume}${path.components}%") args.add("/${volume}/${path.components}%")
} }
if (template.isEmpty()) { if (template.isEmpty()) {