|
|
|
@ -70,6 +70,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
|
|
|
|
private ImageView ivState;
|
|
|
|
|
private TextView tvHost;
|
|
|
|
|
private TextView tvLast;
|
|
|
|
|
private TextView tvDrafts;
|
|
|
|
|
private TextView tvWarning;
|
|
|
|
|
private TextView tvError;
|
|
|
|
|
private Group grpSettings;
|
|
|
|
@ -87,6 +88,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
|
|
|
|
ivState = itemView.findViewById(R.id.ivState);
|
|
|
|
|
tvHost = itemView.findViewById(R.id.tvHost);
|
|
|
|
|
tvLast = itemView.findViewById(R.id.tvLast);
|
|
|
|
|
tvDrafts = itemView.findViewById(R.id.tvDrafts);
|
|
|
|
|
tvWarning = itemView.findViewById(R.id.tvWarning);
|
|
|
|
|
tvError = itemView.findViewById(R.id.tvError);
|
|
|
|
|
grpSettings = itemView.findViewById(R.id.grpSettings);
|
|
|
|
@ -137,6 +139,8 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
|
|
|
|
|
tvLast.setText(context.getString(R.string.title_last_connected,
|
|
|
|
|
account.last_connected == null ? "-" : df.format(account.last_connected)));
|
|
|
|
|
|
|
|
|
|
tvDrafts.setVisibility(account.drafts || !settings ? View.GONE : View.VISIBLE);
|
|
|
|
|
|
|
|
|
|
tvWarning.setText(account.warning);
|
|
|
|
|
tvWarning.setVisibility(account.warning == null || !settings ? View.GONE : View.VISIBLE);
|
|
|
|
|
|
|
|
|
|