mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-24 01:43:42 +02:00
Simplification
This commit is contained in:
@@ -493,11 +493,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
if (permissions == null)
|
||||
return false;
|
||||
UriType uriType = new UriType(uri, event.getClipDescription(), activity);
|
||||
Helper.UriInfo info = Helper.getInfo(uriType, activity);
|
||||
if (info.isImage())
|
||||
onAddImageFile(Arrays.asList(uriType), false);
|
||||
else
|
||||
onAddAttachment(Arrays.asList(uriType), false, 0, false, false, false);
|
||||
onSharedAttachments(new ArrayList<>(Arrays.asList(uriType)));
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user