diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/ExcludeFolderDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/ExcludeFolderDialog.kt index fe44f75f5..936433cb3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/ExcludeFolderDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/ExcludeFolderDialog.kt @@ -62,6 +62,9 @@ class ExcludeFolderDialog(val activity: SimpleActivity, val selectedPaths: List< return pathsList pathsList.add(basePath) + if (basePath == "/") + basePath = "" + for (part in parts) { basePath += "/$part" pathsList.add(basePath)