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()
|
val foldersToScan = mLastMediaFetcher!!.getFoldersToScan()
|
||||||
foldersToScan.add(FAVORITES)
|
foldersToScan.add(FAVORITES)
|
||||||
if (config.showRecycleBinAtFolders) {
|
if (config.showRecycleBinAtFolders) {
|
||||||
foldersToScan.add(RECYCLE_BIN)
|
if (!foldersToScan.contains(RECYCLE_BIN)) {
|
||||||
|
foldersToScan.add(RECYCLE_BIN)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
foldersToScan.remove(RECYCLE_BIN)
|
foldersToScan.remove(RECYCLE_BIN)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue