From 290a84f6993b591fb190ed42023ed118095c02d6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 14 May 2022 20:03:23 +0200 Subject: [PATCH] accept Media access in foss variant too, do not require All files --- .../com/simplemobiletools/gallery/pro/extensions/Activity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt index 2bc1cfa9d..2d3608ebd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt @@ -130,7 +130,9 @@ fun SimpleActivity.launchAbout() { } fun BaseSimpleActivity.handleMediaManagementPrompt(callback: () -> Unit) { - if (isRPlus() && resources.getBoolean(R.bool.require_all_files_access)) { + if (canManageMedia() || isExternalStorageManager()) { + callback() + } else if (isRPlus() && resources.getBoolean(R.bool.require_all_files_access)) { if (Environment.isExternalStorageManager()) { callback() } else {