mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Added fail-safe
This commit is contained in:
parent
9e352840a2
commit
c2537d1315
1 changed files with 78 additions and 74 deletions
|
@ -6429,6 +6429,7 @@ public class FragmentCompose extends FragmentBase {
|
||||||
rvAttachment.setTag(downloading);
|
rvAttachment.setTag(downloading);
|
||||||
checkInternet();
|
checkInternet();
|
||||||
|
|
||||||
|
try {
|
||||||
boolean updated = false;
|
boolean updated = false;
|
||||||
Editable edit = etBody.getEditableText();
|
Editable edit = etBody.getEditableText();
|
||||||
ImageSpan[] spans = edit.getSpans(0, edit.length(), ImageSpan.class);
|
ImageSpan[] spans = edit.getSpans(0, edit.length(), ImageSpan.class);
|
||||||
|
@ -6514,6 +6515,9 @@ public class FragmentCompose extends FragmentBase {
|
||||||
map.clear();
|
map.clear();
|
||||||
for (EntityAttachment attachment : attachments)
|
for (EntityAttachment attachment : attachments)
|
||||||
map.put(attachment.id, attachment);
|
map.put(attachment.id, attachment);
|
||||||
|
} catch (Throwable ex) {
|
||||||
|
Log.e(ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue