On newer we don't need to ask again?
I guess because it's so restricted? (cherry picked from commit eed71b77c789aff8ec4c3b3f5e2126bd6ec5dc76)
This commit is contained in:
parent
54f292ac41
commit
b1aa8de2f1
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ public class UriHandlerActivity extends BaseActivity {
|
|||
}
|
||||
|
||||
protected boolean hasStoragePermission(int requestCode) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
|
||||
if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
|
||||
requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, requestCode);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue