mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-17 22:08:00 +01:00
avoid scanning the recycle bin folder twice
This commit is contained in:
parent
5fe002ab34
commit
eb909442e8
1 changed files with 3 additions and 1 deletions
|
@ -1034,7 +1034,9 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
|||
val foldersToScan = mLastMediaFetcher!!.getFoldersToScan()
|
||||
foldersToScan.add(FAVORITES)
|
||||
if (config.showRecycleBinAtFolders) {
|
||||
foldersToScan.add(RECYCLE_BIN)
|
||||
if (!foldersToScan.contains(RECYCLE_BIN)) {
|
||||
foldersToScan.add(RECYCLE_BIN)
|
||||
}
|
||||
} else {
|
||||
foldersToScan.remove(RECYCLE_BIN)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue