mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-19 15:33:31 +02:00
Fixed shared mime type
This commit is contained in:
@@ -679,7 +679,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
DragAndDropPermissionsCompat permissions = ActivityCompat.requestDragAndDropPermissions(activity, event);
|
||||
if (permissions == null)
|
||||
return false;
|
||||
UriType uriType = new UriType(uri, event.getClipDescription(), activity);
|
||||
UriType uriType = new UriType(uri, null, event.getClipDescription(), activity);
|
||||
onSharedAttachments(new ArrayList<>(Arrays.asList(uriType)));
|
||||
return true;
|
||||
default:
|
||||
@@ -3979,7 +3979,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
ClipData.Item item = clipData.getItemAt(i);
|
||||
Uri uri = item.getUri();
|
||||
if (uri != null)
|
||||
result.add(new UriType(uri, description, getContext()));
|
||||
result.add(new UriType(uri, data.getType(), description, getContext()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user