mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
ignore files with null name
This commit is contained in:
parent
d4f81d3437
commit
f963274942
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ class MediaFetcher(val context: Context) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
val filename = file.name
|
val filename = file.name ?: continue
|
||||||
val isImage = filename.isImageFast()
|
val isImage = filename.isImageFast()
|
||||||
val isVideo = if (isImage) false else filename.isVideoFast()
|
val isVideo = if (isImage) false else filename.isVideoFast()
|
||||||
val isGif = if (isImage || isVideo) false else filename.isGif()
|
val isGif = if (isImage || isVideo) false else filename.isGif()
|
||||||
|
|
Loading…
Reference in a new issue