mirror of https://github.com/M66B/FairEmail.git
Fixed selecting single attachment
This commit is contained in:
parent
24b828141e
commit
701c798519
|
@ -926,7 +926,11 @@ public class FragmentCompose extends FragmentEx {
|
|||
} else if (requestCode == ActivityCompose.REQUEST_ATTACHMENT) {
|
||||
if (data != null) {
|
||||
ClipData clipData = data.getClipData();
|
||||
if (clipData != null)
|
||||
if (clipData == null) {
|
||||
Uri uri = data.getData();
|
||||
if (uri != null)
|
||||
handleAddAttachment(uri, false);
|
||||
} else {
|
||||
for (int i = 0; i < clipData.getItemCount(); i++) {
|
||||
ClipData.Item item = clipData.getItemAt(i);
|
||||
Uri uri = item.getUri();
|
||||
|
@ -934,6 +938,7 @@ public class FragmentCompose extends FragmentEx {
|
|||
handleAddAttachment(uri, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (requestCode == ActivityCompose.REQUEST_ENCRYPT) {
|
||||
if (data != null) {
|
||||
data.setAction(OpenPgpApi.ACTION_SIGN_AND_ENCRYPT);
|
||||
|
|
Loading…
Reference in New Issue