mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
scan invalid files before sorting
This commit is contained in:
parent
1094da87e2
commit
c262755401
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue