avoid scanning the recycle bin folder twice
This commit is contained in:
parent
5fe002ab34
commit
eb909442e8
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue