From 05a81e53c533c2023535a68a33b77aaaeffbf098 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 30 Nov 2021 16:05:16 +0100 Subject: [PATCH] simplifying a path check at deleting folders --- .../gallery/pro/adapters/DirectoryAdapter.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt index c44684d85..ed6a021cd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt @@ -615,15 +615,8 @@ class DirectoryAdapter( return } - var SAFPath = "" + val SAFPath = getFirstSelectedItemPath() ?: return val selectedDirs = getSelectedItems() - selectedDirs.forEach { - val path = it.path - /*if (activity.needsStupidWritePermissions(path) && config.treeUri.isEmpty()) { - SAFPath = path - }*/ - } - activity.handleSAFDialog(SAFPath) { if (!it) { return@handleSAFDialog