From 0ae0d8df12e2de9c1094919a29b16dfb06157550 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 17 Dec 2017 13:03:32 +0100 Subject: [PATCH] also check file existence at Included folders, if size returns 0 --- .../com/simplemobiletools/gallery/helpers/MediaFetcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e9b285d4e..14ab1875e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -271,7 +271,7 @@ class MediaFetcher(val context: Context) { continue val size = file.length() - if (size <= 0L) + if (size <= 0L && !file.exists()) continue val dateTaken = file.lastModified()