Restart to apply suppress notification options

This commit is contained in:
M66B 2022-07-14 15:30:21 +02:00
parent 27610fbd73
commit 647e1e01cb
2 changed files with 3 additions and 1 deletions

View File

@ -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());
}
});

View File

@ -768,7 +768,7 @@ public class HtmlHelper {
}
}
if (color == null || color == Color.TRANSPARENT) {
if (color == null) {
element.removeAttr(key);
continue;
}