mirror of https://github.com/M66B/FairEmail.git
Restore important element styles
This commit is contained in:
parent
0da95d1422
commit
5325b35aa9
|
@ -1904,9 +1904,12 @@ public class HtmlHelper {
|
||||||
baseParams.remove(key);
|
baseParams.remove(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String key : baseParams.keySet())
|
for (String key : baseParams.keySet()) {
|
||||||
if (!STYLE_NO_INHERIT.contains(key) || element)
|
String value = baseParams.get(key);
|
||||||
|
boolean important = (value != null && value.contains("!important"));
|
||||||
|
if (!STYLE_NO_INHERIT.contains(key) || element || important)
|
||||||
result.put(key, baseParams.get(key));
|
result.put(key, baseParams.get(key));
|
||||||
|
}
|
||||||
|
|
||||||
return TextUtils.join(";", result.values());
|
return TextUtils.join(";", result.values());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue