From 5a8ae39fa3e670a1ffcd8b899589e168b2de1944 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 31 Dec 2021 14:14:10 +0100 Subject: [PATCH] Update widget on option changes --- .../main/java/eu/faircode/email/FragmentOptionsDisplay.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java index 3fff8aff89..3533b981f8 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java @@ -748,6 +748,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { prefs.edit().putBoolean("prefer_contact", checked).apply(); + WidgetUnified.updateData(getContext()); } }); @@ -755,6 +756,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { prefs.edit().putBoolean("only_contact", checked).apply(); + WidgetUnified.updateData(getContext()); } }); @@ -762,6 +764,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { prefs.edit().putBoolean("distinguish_contacts", checked).apply(); + WidgetUnified.updateData(getContext()); } });