mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Small improvement
This commit is contained in:
@@ -1962,7 +1962,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
boolean image) throws IOException {
|
||||
Log.w("Add attachment uri=" + uri);
|
||||
|
||||
if ("file".equals(uri.getScheme()) &&
|
||||
if (!"content".equals(uri.getScheme()) &&
|
||||
!Helper.hasPermission(context, Manifest.permission.READ_EXTERNAL_STORAGE)) {
|
||||
Log.w("Add attachment uri=" + uri);
|
||||
throw new SecurityException("Add attachment with file scheme");
|
||||
|
||||
Reference in New Issue
Block a user