mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
rescan favorites and recycle bin with higher priority on main screen
This commit is contained in:
parent
eb909442e8
commit
3e729ba6fe
1 changed files with 6 additions and 3 deletions
|
@ -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 a new issue