From 41eb8994c16e19e65e42708ee1f6e5c3f35b82bd Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 26 Mar 2020 20:28:09 +0100 Subject: [PATCH] Small fix --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 2 +- app/src/main/java/eu/faircode/email/FragmentMessages.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 9f2d955bc9..ebfc33ed97 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1327,7 +1327,7 @@ public class AdapterMessage extends RecyclerView.Adapter 0); diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 0c1c4e70fb..831fb73fbf 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -1415,8 +1415,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. public boolean getValue(String name, long id) { if (values.containsKey(name)) return values.get(name).contains(id); - else if ("addresses".equals(name)) - return !addresses; + else { + if ("addresses".equals(name)) + return addresses; + } return false; }