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