From 5af812dadcc4150c64519b0a83f2fcf3ee3340dd Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 10 Nov 2023 21:09:23 +0100 Subject: [PATCH] Revert "Skip composing spans on convert to HTML" This reverts commit aaa17fb00ee5ef75cdbf65c79732cfa208a64c11. --- app/src/main/java/eu/faircode/email/HtmlEx.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlEx.java b/app/src/main/java/eu/faircode/email/HtmlEx.java index e23e715cc2..0eef9e3003 100644 --- a/app/src/main/java/eu/faircode/email/HtmlEx.java +++ b/app/src/main/java/eu/faircode/email/HtmlEx.java @@ -381,9 +381,6 @@ public class HtmlEx { CharacterStyle[] style = getSpans(text, i, next, CharacterStyle.class); for (int j = 0; j < style.length; j++) { - int flags = text.getSpanFlags(style[j]); - if ((flags & Spanned.SPAN_COMPOSING) != 0) - continue; if (style[j] instanceof StyleSpan) { int s = ((StyleSpan) style[j]).getStyle(); @@ -484,9 +481,6 @@ public class HtmlEx { withinStyle(out, text, i, next); for (int j = style.length - 1; j >= 0; j--) { - int flags = text.getSpanFlags(style[j]); - if ((flags & Spanned.SPAN_COMPOSING) != 0) - continue; if (style[j] instanceof BackgroundColorSpan && !(style[j] instanceof StyleHelper.MarkSpan)) { out.append(""); }