From 29f8f449b9d7f607282599dca00612e428ff4a6c Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 29 Jul 2019 13:13:53 +0200 Subject: [PATCH] fix #1520, avoid showing some invalid folders as files --- .../com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 67bc52291..8893d32d4 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 @@ -230,7 +230,7 @@ class MediaFetcher(val context: Context) { continue } - if (checkFileExistence && !file.exists()) { + if (checkFileExistence && (!file.exists() || !file.isFile)) { continue }