mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Simple outbox count
This commit is contained in:
parent
0f794c5f2e
commit
079da6f6de
1 changed files with 12 additions and 8 deletions
|
@ -173,14 +173,18 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
|||
tvName.setTextColor(folder.unseen > 0 ? colorUnread : textColorSecondary);
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(nf.format(folder.content));
|
||||
sb.append('/');
|
||||
sb.append(nf.format(folder.messages));
|
||||
sb.append('/');
|
||||
if (folder.total == null)
|
||||
sb.append('?');
|
||||
else
|
||||
sb.append(nf.format(folder.total));
|
||||
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));
|
||||
sb.append('/');
|
||||
if (folder.total == null)
|
||||
sb.append('?');
|
||||
else
|
||||
sb.append(nf.format(folder.total));
|
||||
}
|
||||
tvMessages.setText(sb.toString());
|
||||
|
||||
ivMessages.setImageResource(folder.download || EntityFolder.OUTBOX.equals(folder.type)
|
||||
|
|
Loading…
Reference in a new issue