mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-26 16:25:03 +01:00
add a backup dialog for redirecting to media management settings
This commit is contained in:
parent
e2a04249fd
commit
dc53582a51
@ -148,7 +148,11 @@ fun BaseSimpleActivity.handleMediaManagementPrompt(callback: () -> Unit) {
|
|||||||
showErrorToast(e)
|
showErrorToast(e)
|
||||||
val intent = Intent()
|
val intent = Intent()
|
||||||
intent.action = Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION
|
intent.action = Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION
|
||||||
startActivity(intent)
|
try {
|
||||||
|
startActivity(intent)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
ConfirmationDialog(this, "", R.string.media_management_manual, R.string.ok, 0, false) {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
finish()
|
finish()
|
||||||
|
Loading…
Reference in New Issue
Block a user