mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-18 20:50:56 +01:00
avoid trying to fetch contentresolver values from favorites and recycle bin
This commit is contained in:
parent
5abb3ae538
commit
f74302d889
@ -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 New Issue
Block a user