mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
if a file is an image, do not check if its a video
This commit is contained in:
parent
97f0345655
commit
5d04e1967f
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickVideo
|
||||||
val files = dir.listFiles() ?: return media
|
val files = dir.listFiles() ?: return media
|
||||||
for (file in files) {
|
for (file in files) {
|
||||||
val isImage = file.isImageFast() || file.isGif()
|
val isImage = file.isImageFast() || file.isGif()
|
||||||
val isVideo = file.isVideoFast()
|
val isVideo = if (isImage) false else file.isVideoFast()
|
||||||
|
|
||||||
if (!isImage && !isVideo)
|
if (!isImage && !isVideo)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue