From 4e23aecc18ab71b83d0694d0a169824290f9f115 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 14 Jul 2022 10:18:29 +0200 Subject: [PATCH] add the extra messages on Android 12 --- .../simplemobiletools/gallery/pro/extensions/Activity.kt | 7 ++++++- 1 file changed, 6 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 0c22793b8..60ee544c0 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,12 @@ fun BaseSimpleActivity.handleMediaManagementPrompt(callback: () -> Unit) { if (Environment.isExternalStorageManager()) { callback() } else { - ConfirmationAdvancedDialog(this, "", R.string.access_storage_prompt, R.string.ok, 0, true) { success -> + var messagePrompt = getString(R.string.access_storage_prompt) + if (isSPlus()) { + messagePrompt += "\n\n${getString(R.string.media_management_alternative)}" + } + + ConfirmationAdvancedDialog(this, messagePrompt, 0, R.string.ok, 0, true) { success -> if (success) { try { val intent = Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION)