rescan favorites and recycle bin with higher priority on main screen
This commit is contained in:
parent
eb909442e8
commit
3e729ba6fe
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue