Check granted URI permisions

This commit is contained in:
M66B
2023-01-18 09:01:00 +01:00
parent 241778348a
commit c7a8855cd7
5 changed files with 28 additions and 0 deletions

View File

@@ -398,6 +398,8 @@ public class ActivitySignature extends ActivityBase {
NoStreamException.check(uri, this);
getContentResolver().takePersistableUriPermission(uri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
if (!Helper.isPersisted(this, uri, true, false))
throw new IllegalStateException("No permission granted to access selected image " + uri);
int start = etText.getSelectionStart();
if (etText.isRaw())