Prevent crash

This commit is contained in:
M66B
2021-02-12 17:12:39 +01:00
parent 16120e52e2
commit 6c0761c06d
3 changed files with 6 additions and 0 deletions

View File

@@ -1647,6 +1647,8 @@ public class FragmentCompose extends FragmentBase {
Spanned spanned = HtmlHelper.fromHtml(html, new Html.ImageGetter() {
@Override
public Drawable getDrawable(String source) {
if (source != null && source.startsWith("cid:"))
source = null;
return ImageHelper.decodeImage(getContext(), working, source, true, zoom, 1.0f, etBody);
}
}, null, getContext());