From 3e5bc148fa8ec6a3ea1c9370796d0862bd6bcbed Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 29 Feb 2020 17:35:40 +0100 Subject: [PATCH] Fixed flicker on keyword colors changed --- .../main/java/eu/faircode/email/AdapterMessage.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 993b6c43af..55c60eb4bc 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1395,7 +1395,6 @@ public class AdapterMessage extends RecyclerView.Adapter 0 ? View.VISIBLE : View.GONE); tvKeywordsEx.setText(TextUtils.join(" ", message.keywords)); } else { - message.resolveKeywordColors(context); SpannableStringBuilder keywords = getKeywords(message); tvKeywordsEx.setVisibility(show_addresses && keywords.length() > 0 ? View.VISIBLE : View.GONE); tvKeywordsEx.setText(keywords); @@ -4766,12 +4765,11 @@ public class AdapterMessage extends RecyclerView.Adapter list) { keyPosition.clear(); - if (keywords_header) - for (int i = 0; i < list.size(); i++) { - TupleMessageEx message = list.get(i); - if (message != null) - message.resolveKeywordColors(context); - } + for (int i = 0; i < list.size(); i++) { + TupleMessageEx message = list.get(i); + if (message != null) + message.resolveKeywordColors(context); + } differ.submitList(list); }