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

Commit e1c00b99 authored by tibbi's avatar tibbi
Browse files

renaming the file svg checking function

parent 7e5d85ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 21
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '5.5.3'
        propVersionName = '5.5.4'
        kotlin_version = '1.3.10'
    }

+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ fun File.isVideoFast() = videoExtensions.any { absolutePath.endsWith(it, true) }
fun File.isImageFast() = photoExtensions.any { absolutePath.endsWith(it, true) }
fun File.isAudioFast() = audioExtensions.any { absolutePath.endsWith(it, true) }
fun File.isRawFast() = rawExtensions.any { absolutePath.endsWith(it, true) }
fun File.isSvgFast() = absolutePath.endsWith(".svg", true)
fun File.isSvg() = absolutePath.isSvg()

fun File.isImageSlow() = absolutePath.isImageFast() || getMimeType().startsWith("image")
fun File.isVideoSlow() = absolutePath.isVideoFast() || getMimeType().startsWith("video")