mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 10:47:28 +00:00
Optimization
This commit is contained in:
parent
4fd89437f2
commit
60ab18a84b
1 changed files with 22 additions and 21 deletions
|
@ -2644,6 +2644,7 @@ public class HtmlHelper {
|
|||
boolean preview_hidden = prefs.getBoolean("preview_hidden", true);
|
||||
boolean preview_quotes = prefs.getBoolean("preview_quotes", true);
|
||||
|
||||
if (!preview_hidden)
|
||||
for (Element e : d.select("*")) {
|
||||
String style = e.attr("style");
|
||||
if (TextUtils.isEmpty(style))
|
||||
|
@ -2662,7 +2663,7 @@ public class HtmlHelper {
|
|||
.trim()
|
||||
.toLowerCase(Locale.ROOT)
|
||||
.replaceAll("\\s+", " ");
|
||||
if (!preview_hidden && "display".equals(key) && "none".equals(value)) {
|
||||
if ("display".equals(key) && "none".equals(value)) {
|
||||
e.remove();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue