mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +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
|
||||
}
|
||||
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue