From 3e729ba6fe79701ced3fd078998d1ac6c2ed31df Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 21 Oct 2021 12:02:35 +0200 Subject: [PATCH] rescan favorites and recycle bin with higher priority on main screen --- .../gallery/pro/activities/MainActivity.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt index c6a202d76..a78efb4dd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt @@ -1032,10 +1032,13 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { } val foldersToScan = mLastMediaFetcher!!.getFoldersToScan() - foldersToScan.add(FAVORITES) + foldersToScan.add(0, FAVORITES) if (config.showRecycleBinAtFolders) { - if (!foldersToScan.contains(RECYCLE_BIN)) { - foldersToScan.add(RECYCLE_BIN) + if (foldersToScan.contains(RECYCLE_BIN)) { + foldersToScan.remove(RECYCLE_BIN) + foldersToScan.add(0, RECYCLE_BIN) + } else { + foldersToScan.add(0, RECYCLE_BIN) } } else { foldersToScan.remove(RECYCLE_BIN)