diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index d7c8f292fc..e9c58e683b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -252,6 +252,7 @@ public class AdapterMessage extends RecyclerView.Adapter differ; private Map keyPosition = new HashMap<>(); + private Map positionKey = new HashMap<>(); private SelectionTracker selectionTracker = null; enum ViewType {UNIFIED, FOLDER, THREAD, SEARCH} @@ -5069,16 +5070,6 @@ public class AdapterMessage extends RecyclerView.Adapter list) { - keyPosition.clear(); - - for (int i = 0; i < list.size(); i++) { - TupleMessageEx message = list.get(i); - if (message != null) { - keyPosition.put(message.id, i); - message.resolveKeywordColors(context); - } - } - differ.submitList(list); } @@ -5176,6 +5167,18 @@ public class AdapterMessage extends RecyclerView.Adapter