diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/saver/ImageSaver.kt b/app/src/main/java/eu/kanade/tachiyomi/data/saver/ImageSaver.kt index d683eb0aa..06457f0bc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/saver/ImageSaver.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/saver/ImageSaver.kt @@ -101,14 +101,13 @@ class ImageSaver( MediaStore.MediaColumns.DATE_MODIFIED, ) - val selection = "${MediaStore.MediaColumns.RELATIVE_PATH}='$relativePath' AND " + - "${MediaStore.MediaColumns.DISPLAY_NAME}='$imagePath'" + val selection = "${MediaStore.MediaColumns.RELATIVE_PATH}=? AND ${MediaStore.MediaColumns.DISPLAY_NAME}=?" context.contentResolver.query( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, projection, selection, - null, + arrayOf(relativePath, imagePath), null, ).use { cursor -> if (cursor != null && cursor.count >= 1) {