From ec0753a14871fabc4cb19ba0a8f7fc3e683616fa Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 20 Jun 2022 12:50:38 +0200 Subject: [PATCH] tweaking the error at requesting All files access --- .../com/simplemobiletools/gallery/pro/extensions/Activity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 6b094869a..76588f87a 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 @@ -145,13 +145,12 @@ fun BaseSimpleActivity.handleMediaManagementPrompt(callback: () -> Unit) { intent.data = Uri.parse("package:$packageName") startActivity(intent) } catch (e: Exception) { - showErrorToast(e) val intent = Intent() intent.action = Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION try { startActivity(intent) } catch (e: Exception) { - ConfirmationDialog(this, "", R.string.media_management_manual, R.string.ok, 0, false) {} + showErrorToast(e) } } } else {