mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-19 07:23:47 +02:00
Allow dropping images in message composer
This commit is contained in:
@@ -492,7 +492,12 @@ public class FragmentCompose extends FragmentBase {
|
||||
DragAndDropPermissionsCompat permissions = ActivityCompat.requestDragAndDropPermissions(activity, event);
|
||||
if (permissions == null)
|
||||
return false;
|
||||
onAddAttachment(Arrays.asList(new UriType(uri, event.getClipDescription(), activity)), false, 0, false, false, 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);
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user