Fixed initial account setup

pull/50/head
M66B 6 years ago
parent b6d2c0eab5
commit 40780faabe

@ -600,8 +600,8 @@ public class FragmentAccount extends FragmentEx {
cbPrimary.setEnabled(account == null ? true : account.synchronize); cbPrimary.setEnabled(account == null ? true : account.synchronize);
ibDelete.setVisibility(account == null ? View.GONE : View.VISIBLE); ibDelete.setVisibility(account == null ? View.GONE : View.VISIBLE);
btnCheck.setVisibility(account.synchronize ? View.VISIBLE : View.GONE); btnCheck.setVisibility(account == null || account.synchronize ? View.VISIBLE : View.GONE);
btnSave.setVisibility(account.synchronize ? View.GONE : View.VISIBLE); btnSave.setVisibility(account == null || account.synchronize ? View.GONE : View.VISIBLE);
btnCheck.setEnabled(true); btnCheck.setEnabled(true);
pbWait.setVisibility(View.GONE); pbWait.setVisibility(View.GONE);

Loading…
Cancel
Save