|
|
@ -106,8 +106,6 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
prefs.edit().putBoolean("enabled", checked).apply();
|
|
|
|
prefs.edit().putBoolean("enabled", checked).apply();
|
|
|
|
if (!checked)
|
|
|
|
|
|
|
|
swSchedule.setChecked(false);
|
|
|
|
|
|
|
|
ServiceSynchronize.reload(getContext(), true, "enabled=" + checked);
|
|
|
|
ServiceSynchronize.reload(getContext(), true, "enabled=" + checked);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|