1
0
Fork 1

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:
Stephen Paul Weber 2024-09-17 22:02:32 -05:00 committed by Arne
parent 54f292ac41
commit b1aa8de2f1

View file

@ -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;