accept Media access in foss variant too, do not require All files

This commit is contained in:
tibbi 2022-05-14 20:03:23 +02:00
parent 7ef3ed13af
commit 290a84f699

View file

@ -130,7 +130,9 @@ fun SimpleActivity.launchAbout() {
}
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()) {
callback()
} else {