From 00a7427443b005fc81d609eb1304ec09c0ef06a7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 14 Jul 2022 10:12:34 +0200 Subject: [PATCH] lets allow closing the All files prompt by clicking outside --- .gitignore | 3 +++ .../com/simplemobiletools/gallery/pro/extensions/Activity.kt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d94d37b66..01c47beb8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,6 @@ keystore.jks keystore.properties /app/src/proprietary/assets/pesdk_license /app/src/proprietary/assets/vesdk_license +fastlane/fastlane.json +Gemfile +Gemfile.lock 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 723bea316..0c22793b8 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 @@ -134,7 +134,7 @@ fun BaseSimpleActivity.handleMediaManagementPrompt(callback: () -> Unit) { if (Environment.isExternalStorageManager()) { callback() } else { - ConfirmationAdvancedDialog(this, "", R.string.access_storage_prompt, R.string.ok, 0, false) { success -> + ConfirmationAdvancedDialog(this, "", R.string.access_storage_prompt, R.string.ok, 0, true) { success -> if (success) { try { val intent = Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION)