From da665cd5e25dedc6b3c2da1a2baa87b36280c632 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 17 Feb 2019 18:43:03 +0000 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/FragmentAccount.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java index bb76ab51d5..8e57d729e6 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccount.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java @@ -383,6 +383,7 @@ public class FragmentAccount extends FragmentBase { cbSynchronize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { + cbOnDemand.setEnabled(checked); cbPrimary.setEnabled(checked); } }); @@ -1189,6 +1190,7 @@ public class FragmentAccount extends FragmentBase { etRealm.setEnabled(auth_type == Helper.AUTH_TYPE_PASSWORD); setColor(color); + cbOnDemand.setEnabled(cbSynchronize.isChecked()); cbPrimary.setEnabled(cbSynchronize.isChecked()); // Consider previous check/save/delete as cancelled