Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0312e09 authored by tibbi's avatar tibbi
Browse files

check Raw at isImageVideoGif too

parent a1e8b7f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '4.2.4'
        propVersionName = '4.2.5'
        kotlin_version = '1.2.50'
        support_libs = '27.1.1'
    }
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ import com.simplemobiletools.commons.helpers.videoExtensions
import com.simplemobiletools.commons.models.FileDirItem
import java.io.File

fun File.isImageVideoGif() = absolutePath.isImageFast() || absolutePath.isVideoFast() || absolutePath.isGif()
fun File.isImageVideoGif() = absolutePath.isImageFast() || absolutePath.isVideoFast() || absolutePath.isGif() || absolutePath.isRawFast()
fun File.isGif() = absolutePath.endsWith(".gif", true)
fun File.isVideoFast() = videoExtensions.any { absolutePath.endsWith(it, true) }
fun File.isImageFast() = photoExtensions.any { absolutePath.endsWith(it, true) }
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ fun String.isAValidFilename(): Boolean {
    return true
}

fun String.isImageVideoGif() = isImageFast() || isVideoFast() || isGif()
fun String.isImageVideoGif() = isImageFast() || isVideoFast() || isGif() || isRawFast()

fun String.isGif() = endsWith(".gif", true)