|
|
|
@ -104,6 +104,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
|
|
|
|
private TextView tvMaxSize;
|
|
|
|
|
private TextView tvIdentity;
|
|
|
|
|
private TextView tvDrafts;
|
|
|
|
|
private TextView tvSent;
|
|
|
|
|
private TextView tvWarning;
|
|
|
|
|
private TextView tvError;
|
|
|
|
|
private Button btnHelp;
|
|
|
|
@ -133,6 +134,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
|
|
|
|
tvMaxSize = itemView.findViewById(R.id.tvMaxSize);
|
|
|
|
|
tvIdentity = itemView.findViewById(R.id.tvIdentity);
|
|
|
|
|
tvDrafts = itemView.findViewById(R.id.tvDrafts);
|
|
|
|
|
tvSent = itemView.findViewById(R.id.tvSent);
|
|
|
|
|
tvWarning = itemView.findViewById(R.id.tvWarning);
|
|
|
|
|
tvError = itemView.findViewById(R.id.tvError);
|
|
|
|
|
btnHelp = itemView.findViewById(R.id.btnHelp);
|
|
|
|
@ -233,6 +235,8 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
|
|
|
|
|
|
|
|
|
tvIdentity.setVisibility(account.identities > 0 || !settings ? View.GONE : View.VISIBLE);
|
|
|
|
|
tvDrafts.setVisibility(account.drafts != null || !settings ? View.GONE : View.VISIBLE);
|
|
|
|
|
tvSent.setVisibility(account.protocol != EntityAccount.TYPE_IMAP ||
|
|
|
|
|
account.sent != null || !settings ? View.GONE : View.VISIBLE);
|
|
|
|
|
|
|
|
|
|
tvWarning.setText(account.warning);
|
|
|
|
|
tvWarning.setVisibility(account.warning == null || !settings ? View.GONE : View.VISIBLE);
|
|
|
|
|