mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +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)
|
val dirs = ArrayList(directories.values)
|
||||||
filterDirectories(dirs)
|
filterDirectories(dirs)
|
||||||
Directory.sorting = mConfig.directorySorting
|
Directory.sorting = mConfig.directorySorting
|
||||||
dirs.sort()
|
dirs.sort()
|
||||||
|
|
||||||
context.scanFiles(invalidFiles) {}
|
|
||||||
return dirs
|
return dirs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,9 +65,9 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickVideo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
context.scanFiles(invalidFiles) {}
|
||||||
Medium.sorting = mConfig.sorting
|
Medium.sorting = mConfig.sorting
|
||||||
media.sort()
|
media.sort()
|
||||||
context.scanFiles(invalidFiles) {}
|
|
||||||
return media
|
return media
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue