mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 22:37:59 +01:00
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()) {
|
if (Environment.isExternalStorageManager()) {
|
||||||
callback()
|
callback()
|
||||||
} else {
|
} 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) {
|
if (success) {
|
||||||
try {
|
try {
|
||||||
val intent = Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION)
|
val intent = Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION)
|
||||||
|
|
Loading…
Reference in a new issue