Read external storage permission < Android 13

pull/212/head
M66B 2 years ago
parent a9ec14b37d
commit ba9969f5ea

@ -77,7 +77,9 @@ public class NoStreamException extends SecurityException {
builder.setView(dview);
builder.setNegativeButton(android.R.string.cancel, null);
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.M)
// https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.M &&
Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU)
builder.setPositiveButton(R.string.title_setup_grant, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {

Loading…
Cancel
Save