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 4a4a3d6a1..c6a202d76 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 @@ -1034,7 +1034,9 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { val foldersToScan = mLastMediaFetcher!!.getFoldersToScan() foldersToScan.add(FAVORITES) if (config.showRecycleBinAtFolders) { - foldersToScan.add(RECYCLE_BIN) + if (!foldersToScan.contains(RECYCLE_BIN)) { + foldersToScan.add(RECYCLE_BIN) + } } else { foldersToScan.remove(RECYCLE_BIN) }