Simple outbox count

pull/153/head
M66B 6 years ago
parent 0f794c5f2e
commit 079da6f6de

@ -173,6 +173,9 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
tvName.setTextColor(folder.unseen > 0 ? colorUnread : textColorSecondary);
StringBuilder sb = new StringBuilder();
if (folder.account == null)
sb.append(nf.format(folder.messages));
else {
sb.append(nf.format(folder.content));
sb.append('/');
sb.append(nf.format(folder.messages));
@ -181,6 +184,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
sb.append('?');
else
sb.append(nf.format(folder.total));
}
tvMessages.setText(sb.toString());
ivMessages.setImageResource(folder.download || EntityFolder.OUTBOX.equals(folder.type)

Loading…
Cancel
Save