From 07acb4f5b91e0cd6229c6f8ce2801fe26176cf08 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Sun, 14 Jan 2024 11:00:52 -0700 Subject: [PATCH] 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. --- .../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 49c068a0b..f3a6f6aa4 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 @@ -142,7 +142,7 @@ private constructor(private val cursor: Cursor, volumeManager: VolumeManager) : } else { " OR ${MediaStore.Audio.AudioColumns.DATA} LIKE ?" } - args.add("${volume}${path.components}%") + args.add("/${volume}/${path.components}%") } if (template.isEmpty()) {