scan invalid files before sorting

This commit is contained in:
tibbi 2016-11-30 22:48:37 +01:00
parent 1094da87e2
commit c262755401
2 changed files with 2 additions and 3 deletions

View file

@ -77,12 +77,11 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
}
}
context.scanFiles(invalidFiles) {}
val dirs = ArrayList(directories.values)
filterDirectories(dirs)
Directory.sorting = mConfig.directorySorting
dirs.sort()
context.scanFiles(invalidFiles) {}
return dirs
}

View file

@ -65,9 +65,9 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickVideo
}
}
context.scanFiles(invalidFiles) {}
Medium.sorting = mConfig.sorting
media.sort()
context.scanFiles(invalidFiles) {}
return media
}