avoid scanning the recycle bin folder twice

This commit is contained in:
tibbi 2021-10-21 11:16:03 +02:00
parent 5fe002ab34
commit eb909442e8
1 changed files with 3 additions and 1 deletions

View File

@ -1034,7 +1034,9 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
val foldersToScan = mLastMediaFetcher!!.getFoldersToScan()
foldersToScan.add(FAVORITES)
if (config.showRecycleBinAtFolders) {
if (!foldersToScan.contains(RECYCLE_BIN)) {
foldersToScan.add(RECYCLE_BIN)
}
} else {
foldersToScan.remove(RECYCLE_BIN)
}