From 7f49de2a838c161cf1193904b823ef19dc71cd63 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 16 Mar 2020 08:31:08 +0100 Subject: [PATCH] Small improvement/fix --- .../java/eu/faircode/email/AdapterMessage.java | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index b0f10c3296..b7295577e7 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -4630,8 +4630,10 @@ public class AdapterMessage extends RecyclerView.Adapter messages = getCurrentList(); - if (messages != null) { - for (int i = 0; i < messages.size(); i++) { - TupleMessageEx message = messages.get(i); - if (message != null) - keyPosition.put(message.id, i); - } - Log.i("Mapped keys=" + keyPosition.size()); - } - } - if (keyPosition.containsKey(key)) { int pos = keyPosition.get(key); Log.d("Position=" + pos + " @Key=" + key);