From 2c42019ab5dc2d573aa144e23ac272cebbd8696b Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 5 Jan 2019 14:24:04 +0000 Subject: [PATCH] Show solid mail icon when downloading messages, small improvements --- .../java/eu/faircode/email/AdapterFolder.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterFolder.java b/app/src/main/java/eu/faircode/email/AdapterFolder.java index c741b2612d..1c11e46085 100644 --- a/app/src/main/java/eu/faircode/email/AdapterFolder.java +++ b/app/src/main/java/eu/faircode/email/AdapterFolder.java @@ -58,6 +58,8 @@ public class AdapterFolder extends RecyclerView.Adapter all = new ArrayList<>(); private List filtered = new ArrayList<>(); @@ -70,6 +72,7 @@ public class AdapterFolder extends RecyclerView.Adapter 0 ? Typeface.BOLD : Typeface.NORMAL); - tvName.setTextColor(Helper.resolveColor(context, folder.unseen > 0 ? R.attr.colorUnread : android.R.attr.textColorSecondary)); + tvName.setTextColor(folder.unseen > 0 ? colorUnread : textColorSecondary); tvMessages.setText(String.format("%d/%d", folder.content, folder.messages)); + ivMessages.setImageResource(folder.download && !EntityFolder.OUTBOX.equals(folder.type) + ? R.drawable.baseline_mail_24 : R.drawable.baseline_mail_outline_24); ivUnified.setVisibility(account > 0 && folder.unified ? View.VISIBLE : View.INVISIBLE); @@ -183,9 +189,8 @@ public class AdapterFolder extends RecyclerView.Adapter 0 ? View.VISIBLE : View.GONE); @@ -379,6 +384,8 @@ public class AdapterFolder extends RecyclerView.Adapter