From e25e4ba880feb4549aa76fa15d8170593c296daa Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 16 Oct 2022 10:32:45 +0200 Subject: [PATCH] allow renaming some extra files with access to All files --- .../com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt index 34d53fee5..b784dc0f2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt @@ -244,7 +244,7 @@ class MediaAdapter( val firstPath = getFirstSelectedItemPath() ?: return val isSDOrOtgRootFolder = activity.isAStorageRootFolder(firstPath.getParentPath()) && !firstPath.startsWith(activity.internalStoragePath) - if (isRPlus() && isSDOrOtgRootFolder) { + if (isRPlus() && isSDOrOtgRootFolder && !isExternalStorageManager()) { activity.toast(R.string.rename_in_sd_card_system_restriction, Toast.LENGTH_LONG) finishActMode() return