check Raw at isImageVideoGif too
This commit is contained in:
parent
a1e8b7f3e8
commit
f0312e0976
3 changed files with 3 additions and 3 deletions
|
@ -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'
|
||||
}
|
||||
|
|
|
@ -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) }
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue