1
0
Fork 0
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:
M66B 2024-03-09 08:03:28 +01:00
parent 9e352840a2
commit c2537d1315

View file

@ -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);
}
} }
}); });