mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-27 16:33:47 +00:00
Insert images with spaces
This commit is contained in:
parent
1d8d7e9c1c
commit
46976ea19e
1 changed files with 3 additions and 3 deletions
|
@ -1750,8 +1750,8 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
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);
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue