add the extra messages on Android 12
This commit is contained in:
parent
9ebab6ecfb
commit
4e23aecc18
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue