From 1dc5a4fad02ea385341a4301e87776f94f4ff3ee Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 27 Jan 2019 08:37:41 +0000 Subject: [PATCH] Fix --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 8ca6089a8d..8d7e72f1e1 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -844,9 +844,9 @@ public class FragmentMessages extends FragmentBase { boolean isDrafts = EntityFolder.DRAFTS.equals(folder.type); result.isArchive = (result.isArchive == null ? isArchive : result.isArchive && isArchive); - result.isTrash = (result.isTrash == null ? isTrash : result.isTrash && isArchive); - result.isJunk = (result.isJunk == null ? isJunk : result.isJunk && isArchive); - result.isDrafts = (result.isDrafts == null ? isDrafts : result.isDrafts && isArchive); + result.isTrash = (result.isTrash == null ? isTrash : result.isTrash && isTrash); + result.isJunk = (result.isJunk == null ? isJunk : result.isJunk && isJunk); + result.isDrafts = (result.isDrafts == null ? isDrafts : result.isDrafts && isDrafts); boolean hasArchive = (db.folder().getFolderByType(message.account, EntityFolder.ARCHIVE) != null); boolean hasTrash = (db.folder().getFolderByType(message.account, EntityFolder.TRASH) != null);