mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Fixed clearing all styles
This commit is contained in:
parent
497c60a708
commit
afeb809c53
1 changed files with 7 additions and 1 deletions
|
@ -649,7 +649,13 @@ public class StyleHelper {
|
||||||
e++;
|
e++;
|
||||||
|
|
||||||
for (Object span : edit.getSpans(start, e, Object.class)) {
|
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;
|
continue;
|
||||||
|
|
||||||
int sstart = edit.getSpanStart(span);
|
int sstart = edit.getSpanStart(span);
|
||||||
|
|
Loading…
Reference in a new issue