add opus to the recognized audio extensions
This commit is contained in:
parent
db67c8ff1b
commit
49c325b23d
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ buildscript {
|
|||
propMinSdkVersion = 16
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '3.6.16'
|
||||
propVersionName = '3.6.17'
|
||||
kotlin_version = '1.2.10'
|
||||
support_libs = '27.0.2'
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ fun String.isAValidFilename(): Boolean {
|
|||
|
||||
val String.photoExtensions: Array<String> get() = arrayOf(".jpg", ".png", ".jpeg", ".bmp", ".webp", ".dng")
|
||||
val String.videoExtensions: Array<String> get() = arrayOf(".mp4", ".mkv", ".webm", ".avi", ".3gp", ".mov", ".m4v", ".3gpp")
|
||||
val String.audioExtensions: Array<String> get() = arrayOf(".mp3", ".wav", ".wma", ".ogg", ".m4a")
|
||||
val String.audioExtensions: Array<String> get() = arrayOf(".mp3", ".wav", ".wma", ".ogg", ".m4a", ".opus")
|
||||
|
||||
fun String.isImageVideoGif() = isImageFast() || isVideoFast() || isGif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue