Small improvement

This commit is contained in:
M66B
2019-11-03 20:07:26 +01:00
parent 84e105a96c
commit fc53f9b449
8 changed files with 9 additions and 9 deletions

View File

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