Explicitly show when not synchronizing

This commit is contained in:
M66B
2018-09-09 07:41:53 +00:00
parent df7686e50a
commit 8df21b0e83
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
private void bindTo(EntityAccount account) {
ivPrimary.setVisibility(account.primary ? View.VISIBLE : View.INVISIBLE);
tvName.setText(account.name);
ivSync.setVisibility(account.synchronize ? View.VISIBLE : View.INVISIBLE);
ivSync.setImageResource(account.synchronize ? R.drawable.baseline_sync_24 : R.drawable.baseline_sync_disabled_24);
tvUser.setText(account.user);
tvHost.setText(String.format("%s:%d", account.host, account.port));