1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Remove fg/bg colors visibility=hidden

This commit is contained in:
M66B 2022-04-04 20:25:13 +02:00
parent f59a6ddf55
commit 16956571a5

View file

@ -3208,8 +3208,13 @@ public class HtmlHelper {
setSpan(ssb, new AlignmentSpan.Standard(alignment), start, ssb.length());
break;
case "visibility":
if ("hidden".equals(value))
if ("hidden".equals(value)) {
for (ForegroundColorSpan span : ssb.getSpans(start, ssb.length(), ForegroundColorSpan.class))
ssb.removeSpan(span);
for (BackgroundColorSpan span : ssb.getSpans(start, ssb.length(), BackgroundColorSpan.class))
ssb.removeSpan(span);
setSpan(ssb, new ForegroundColorSpan(Color.TRANSPARENT), start, ssb.length());
}
break;
}
}