From 416f459bc55f61af9378e5f30eee387f10710394 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 31 Aug 2017 12:21:14 +0200 Subject: [PATCH] improve the checks if the file is a gif --- .../com/simplemobiletools/gallery/extensions/context.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt index b95cabbff..2f4faa5b6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt @@ -96,7 +96,7 @@ private fun parseCursor(context: Context, cur: Cursor, isPickImage: Boolean, isP val isImage = filename.isImageFast() val isVideo = if (isImage) false else filename.isVideoFast() - val isGif = filename.isGif() + val isGif = if (isImage || isVideo) false else filename.isGif() if (!isImage && !isVideo && !isGif) continue @@ -161,7 +161,7 @@ private fun parseCursor(context: Context, cur: Cursor, isPickImage: Boolean, isP val filename = file.name val isImage = filename.isImageFast() val isVideo = if (isImage) false else filename.isVideoFast() - val isGif = filename.isGif() + val isGif = if (isImage || isVideo) false else filename.isGif() if (!isImage && !isVideo) continue