mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Fixed formatting after inserting image
This commit is contained in:
parent
0bb0e3c6c1
commit
da3f35f982
1 changed files with 4 additions and 2 deletions
|
@ -3379,13 +3379,15 @@ public class FragmentCompose extends FragmentBase {
|
|||
Helper.writeText(file, doc.html());
|
||||
}
|
||||
|
||||
return HtmlHelper.fromHtml(html, new HtmlHelper.ImageGetterEx() {
|
||||
Document d = JsoupEx.parse(html);
|
||||
d = HtmlHelper.sanitizeView(context, d, true);
|
||||
return HtmlHelper.fromDocument(context, d, new HtmlHelper.ImageGetterEx() {
|
||||
@Override
|
||||
public Drawable getDrawable(Element element) {
|
||||
return ImageHelper.decodeImage(context,
|
||||
id, element, true, zoom, 1.0f, etBody);
|
||||
}
|
||||
}, null, getContext());
|
||||
}, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue