1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 14:41:08 +00:00

Fixed clearing all styles

This commit is contained in:
M66B 2022-01-08 12:05:36 +01:00
parent 497c60a708
commit afeb809c53

View file

@ -649,7 +649,13 @@ public class StyleHelper {
e++;
for (Object span : edit.getSpans(start, e, Object.class)) {
if (!CLEAR_STYLES.contains(span.getClass()))
boolean has = false;
for (Class cls : CLEAR_STYLES)
if (cls.isAssignableFrom(span.getClass())) {
has = true;
break;
}
if (!has)
continue;
int sstart = edit.getSpanStart(span);