From 46976ea19e71956e96b589c1c51fe2471563d15d Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 25 Mar 2020 09:10:12 +0100 Subject: [PATCH] Insert images with spaces --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 0181e87fa9..e728648c50 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -1749,9 +1749,9 @@ public class FragmentCompose extends FragmentBase { Uri cid = Uri.parse("cid:" + BuildConfig.APPLICATION_ID + "." + attachment.id); SpannableStringBuilder s = new SpannableStringBuilder(body); - s.insert(start, " "); - ImageSpan is = new ImageSpan(context, cid, ImageSpan.ALIGN_BASELINE); - s.setSpan(is, start, start + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); + s.insert(start, " "); + ImageSpan is = new ImageSpan(context, cid); + s.setSpan(is, start + 1, start + 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); return HtmlHelper.fromHtml(HtmlHelper.toHtml(s), new Html.ImageGetter() { @Override