diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt index b725d7327..98a399c4d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt @@ -125,9 +125,9 @@ class MediaFetcher(val context: Context) { cursor.use { if (cursor.moveToFirst()) { do { - val path = cursor.getStringValue(MediaStore.Images.Media.DATA).trim() + val path = cursor.getStringValue(MediaStore.Images.Media.DATA) val parentPath = File(path).parent?.trimEnd('/') ?: continue - if (!includedFolders.contains(parentPath) && !foldersToIgnore.contains(parentPath.toLowerCase())) { + if (!includedFolders.contains(parentPath) && !foldersToIgnore.contains(parentPath)) { foldersToScan.add(parentPath) } } while (cursor.moveToNext())