From 647e1e01cbbb39962cef85581cf748b5812b2c0b Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 14 Jul 2022 15:30:21 +0200 Subject: [PATCH] Restart to apply suppress notification options --- .../java/eu/faircode/email/FragmentOptionsNotifications.java | 2 ++ app/src/main/java/eu/faircode/email/HtmlHelper.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java b/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java index 6baff7b582..4e4c008e2f 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java @@ -494,6 +494,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { prefs.edit().putBoolean("notify_suppress_in_call", checked).apply(); + ServiceSynchronize.restart(compoundButton.getContext()); } }); @@ -504,6 +505,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { prefs.edit().putBoolean("notify_suppress_in_car", checked).apply(); + ServiceSynchronize.restart(compoundButton.getContext()); } }); diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 9aa1287784..a7d78e90a2 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -768,7 +768,7 @@ public class HtmlHelper { } } - if (color == null || color == Color.TRANSPARENT) { + if (color == null) { element.removeAttr(key); continue; }