Small improvement

pull/148/head
M66B 6 years ago
parent d597366f17
commit da665cd5e2

@ -383,6 +383,7 @@ public class FragmentAccount extends FragmentBase {
cbSynchronize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { cbSynchronize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override @Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
cbOnDemand.setEnabled(checked);
cbPrimary.setEnabled(checked); cbPrimary.setEnabled(checked);
} }
}); });
@ -1189,6 +1190,7 @@ public class FragmentAccount extends FragmentBase {
etRealm.setEnabled(auth_type == Helper.AUTH_TYPE_PASSWORD); etRealm.setEnabled(auth_type == Helper.AUTH_TYPE_PASSWORD);
setColor(color); setColor(color);
cbOnDemand.setEnabled(cbSynchronize.isChecked());
cbPrimary.setEnabled(cbSynchronize.isChecked()); cbPrimary.setEnabled(cbSynchronize.isChecked());
// Consider previous check/save/delete as cancelled // Consider previous check/save/delete as cancelled

Loading…
Cancel
Save