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)