Update widget on option changes

pull/194/merge
M66B 3 years ago
parent dda23dbb44
commit 5a8ae39fa3

@ -748,6 +748,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
@Override @Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("prefer_contact", checked).apply(); prefs.edit().putBoolean("prefer_contact", checked).apply();
WidgetUnified.updateData(getContext());
} }
}); });
@ -755,6 +756,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
@Override @Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("only_contact", checked).apply(); prefs.edit().putBoolean("only_contact", checked).apply();
WidgetUnified.updateData(getContext());
} }
}); });
@ -762,6 +764,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
@Override @Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("distinguish_contacts", checked).apply(); prefs.edit().putBoolean("distinguish_contacts", checked).apply();
WidgetUnified.updateData(getContext());
} }
}); });

Loading…
Cancel
Save