ignore files with null name

This commit is contained in:
tibbi 2018-04-24 14:34:51 +02:00
parent d4f81d3437
commit f963274942
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ class MediaFetcher(val context: Context) {
break
}
val filename = file.name
val filename = file.name ?: continue
val isImage = filename.isImageFast()
val isVideo = if (isImage) false else filename.isVideoFast()
val isGif = if (isImage || isVideo) false else filename.isGif()