diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt index 61e88604b..76dd0781f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -187,6 +187,8 @@ class MediaFetcher(val context: Context) { val file = File(path) return if (path.isEmpty()) { false + } else if (file.containsNoMedia()) { + false } else if (path.isThisOrParentIncluded(includedPaths)) { true } else if (path.isThisOrParentExcluded(excludedPaths)) {