mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-06 11:39:49 +00:00
Global enabled / schedule
This commit is contained in:
parent
f906271b0c
commit
4a25cbe269
1 changed files with 4 additions and 0 deletions
|
@ -94,6 +94,8 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
|||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("enabled", checked).apply();
|
||||
spPollInterval.setEnabled(checked);
|
||||
if (!checked)
|
||||
swSchedule.setChecked(false);
|
||||
ServiceSynchronize.reload(getContext(), true, "enabled=" + checked);
|
||||
}
|
||||
});
|
||||
|
@ -125,6 +127,8 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
|||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("schedule", checked).apply();
|
||||
if (checked)
|
||||
swEnabled.setChecked(true);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue