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
|
||||
for (file in files) {
|
||||
val isImage = file.isImageFast() || file.isGif()
|
||||
val isVideo = file.isVideoFast()
|
||||
val isVideo = if (isImage) false else file.isVideoFast()
|
||||
|
||||
if (!isImage && !isVideo)
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue