Small improvement

This commit is contained in:
M66B 2019-02-17 18:43:03 +00:00
parent d597366f17
commit da665cd5e2
1 changed files with 2 additions and 0 deletions

View File

@ -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