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

@@ -196,6 +196,8 @@ public class FragmentAnswer extends FragmentBase {
etText.setText(HtmlHelper.fromHtml(answer.text, new Html.ImageGetter() {
@Override
public Drawable getDrawable(String source) {
if (source != null && source.startsWith("cid:"))
source = null;
return ImageHelper.decodeImage(getContext(), -1, source, true, 0, 1.0f, etText);
}
}, null, getContext()));