From 5d04e1967fed0e27c81b1cf5fe48c59d82ba8bf8 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 19 Feb 2017 19:25:22 +0100 Subject: [PATCH] if a file is an image, do not check if its a video --- .../simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt index 24dabbda1..e51909a40 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt @@ -50,7 +50,7 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickVideo val files = dir.listFiles() ?: return media for (file in files) { val isImage = file.isImageFast() || file.isGif() - val isVideo = file.isVideoFast() + val isVideo = if (isImage) false else file.isVideoFast() if (!isImage && !isVideo) continue