rescan favorites and recycle bin with higher priority on main screen

This commit is contained in:
tibbi 2021-10-21 12:02:35 +02:00
parent eb909442e8
commit 3e729ba6fe

View file

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