avoid trying to fetch contentresolver values from favorites and recycle bin
This commit is contained in:
parent
5abb3ae538
commit
f74302d889
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ class MediaFetcher(val context: Context) {
|
|||
|
||||
val doExtraCheck = context.config.doExtraCheck
|
||||
val showHidden = context.config.shouldShowHidden
|
||||
val dateTakens = if (getProperDateTaken) getFolderDateTakens(folder) else HashMap()
|
||||
val dateTakens = if (getProperDateTaken && folder != FAVORITES && folder != RECYCLE_BIN) getFolderDateTakens(folder) else HashMap()
|
||||
|
||||
val files = when (folder) {
|
||||
FAVORITES -> favoritePaths.filter { showHidden || !it.contains("/.") }.map { File(it) }.toTypedArray()
|
||||
|
|
Loading…
Reference in a new issue