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:
parent
f59a6ddf55
commit
16956571a5
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue