make folder Inclusion really recursive

This commit is contained in:
tibbi 2018-02-20 10:46:41 +01:00
parent a8e87bafcc
commit 0419ef90a7
1 changed files with 5 additions and 0 deletions

View File

@ -268,6 +268,11 @@ class MediaFetcher(val context: Context) {
break
}
if (file.isDirectory) {
getMediaInFolder(file.absolutePath, curMedia, isPickImage, isPickVideo, filterMedia)
continue
}
val filename = file.name
val isImage = filename.isImageFast()
val isVideo = if (isImage) false else filename.isVideoFast()