Process UID command option

This commit is contained in:
M66B
2022-01-28 15:31:46 +01:00
parent e819451416
commit 5a6ace9c4c
4 changed files with 13 additions and 4 deletions

View File

@@ -897,6 +897,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("uid_command", checked).apply();
System.setProperty("fairemail.uid_command", Boolean.toString(checked));
ServiceSynchronize.reload(compoundButton.getContext(), null, true, "uid_command");
}
});
@@ -913,7 +915,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("uid_expunge", checked).apply();
ServiceSynchronize.reload(compoundButton.getContext(), null, true, "perform_expunge");
ServiceSynchronize.reload(compoundButton.getContext(), null, true, "uid_expunge");
}
});