1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Small improvement

This commit is contained in:
M66B 2020-04-27 08:21:46 +02:00
parent 31fcf01dba
commit 2fd58cb1fa

View file

@ -281,7 +281,7 @@ public class ActivitySignature extends ActivityBase {
etText.getText().insert(start, "<img src=\"" + Html.escapeHtml(uri.toString()) + "\" />");
else {
SpannableStringBuilder ssb = new SpannableStringBuilder(etText.getText());
ssb.insert(start, " ");
ssb.insert(start, "\uFFFC"); // Object replacement character
ImageSpan is = new ImageSpan(getDrawableByUri(this, uri), uri.toString(), ImageSpan.ALIGN_BASELINE);
ssb.setSpan(is, start, start + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
etText.setText(ssb);