diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt index 7b76fb7a9..83d750475 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -294,9 +294,11 @@ class DirectoryAdapter(val activity: SimpleActivity, var dirs: MutableList it) { + val path = dirs[it].path + if (activity.needsStupidWritePermissions(path) && config.treeUri.isEmpty()) { + needPermissionForPath = path + } } }