mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
fetch date_taken only when needed
This commit is contained in:
parent
049e2fd801
commit
82569b540f
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ class MediaFetcher(val context: Context) {
|
||||||
val files = File(folder).listFiles() ?: return media
|
val files = File(folder).listFiles() ?: return media
|
||||||
val doExtraCheck = context.config.doExtraCheck
|
val doExtraCheck = context.config.doExtraCheck
|
||||||
val showHidden = context.config.shouldShowHidden
|
val showHidden = context.config.shouldShowHidden
|
||||||
val sorting = SORT_BY_DATE_TAKEN //context.config.getFileSorting(folder)
|
val sorting = context.config.getFileSorting(folder)
|
||||||
val dateTakens = if (sorting and SORT_BY_DATE_TAKEN != 0) getFolderDateTakens(folder) else HashMap()
|
val dateTakens = if (sorting and SORT_BY_DATE_TAKEN != 0) getFolderDateTakens(folder) else HashMap()
|
||||||
|
|
||||||
for (file in files) {
|
for (file in files) {
|
||||||
|
|
Loading…
Reference in a new issue