Prevent crash

This commit is contained in:
M66B 2022-04-19 08:28:22 +02:00
parent 91708cd95a
commit f34ce53f5f
1 changed files with 3 additions and 0 deletions

View File

@ -6761,6 +6761,9 @@ public class FragmentCompose extends FragmentBase {
signature = HtmlHelper.fromHtml(identity.signature, new HtmlHelper.ImageGetterEx() {
@Override
public Drawable getDrawable(Element element) {
String source = element.attr("src");
if (source.startsWith("cid:"))
element.attr("src", "cid:");
return ImageHelper.decodeImage(getContext(),
working, element, true, 0, 1.0f, tvSignature);
}