Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '5.5.2' propVersionName = '5.5.3' kotlin_version = '1.3.10' } Loading commons/src/main/kotlin/com/simplemobiletools/commons/extensions/File.kt +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +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.isImageSlow() = absolutePath.isImageFast() || getMimeType().startsWith("image") fun File.isVideoSlow() = absolutePath.isVideoFast() || getMimeType().startsWith("video") Loading Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '5.5.2' propVersionName = '5.5.3' kotlin_version = '1.3.10' } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/extensions/File.kt +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +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.isImageSlow() = absolutePath.isImageFast() || getMimeType().startsWith("image") fun File.isVideoSlow() = absolutePath.isVideoFast() || getMimeType().startsWith("video") Loading