accept Media access in foss variant too, do not require All files
This commit is contained in:
parent
7ef3ed13af
commit
290a84f699
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,9 @@ fun SimpleActivity.launchAbout() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun BaseSimpleActivity.handleMediaManagementPrompt(callback: () -> Unit) {
|
fun BaseSimpleActivity.handleMediaManagementPrompt(callback: () -> Unit) {
|
||||||
if (isRPlus() && resources.getBoolean(R.bool.require_all_files_access)) {
|
if (canManageMedia() || isExternalStorageManager()) {
|
||||||
|
callback()
|
||||||
|
} else if (isRPlus() && resources.getBoolean(R.bool.require_all_files_access)) {
|
||||||
if (Environment.isExternalStorageManager()) {
|
if (Environment.isExternalStorageManager()) {
|
||||||
callback()
|
callback()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue