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