From f1a6b77d303359ccde98071d62fe4e456967c60a Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Sun, 14 Jan 2024 09:55:43 -0700 Subject: [PATCH] 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. --- .../org/oxycblt/auxio/music/fs/MediaStorePathInterpreter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/oxycblt/auxio/music/fs/MediaStorePathInterpreter.kt b/app/src/main/java/org/oxycblt/auxio/music/fs/MediaStorePathInterpreter.kt index 8a9a4e1df..49c068a0b 100644 --- a/app/src/main/java/org/oxycblt/auxio/music/fs/MediaStorePathInterpreter.kt +++ b/app/src/main/java/org/oxycblt/auxio/music/fs/MediaStorePathInterpreter.kt @@ -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 ?)"