From ff0cbddc7ee1726dd2fe3929bacb142518f3fee4 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 10 Sep 2019 18:05:27 +0200 Subject: [PATCH] Refactoring --- app/src/main/java/eu/faircode/email/EntityOperation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EntityOperation.java b/app/src/main/java/eu/faircode/email/EntityOperation.java index 20503b5d46..26bfcd2c1a 100644 --- a/app/src/main/java/eu/faircode/email/EntityOperation.java +++ b/app/src/main/java/eu/faircode/email/EntityOperation.java @@ -100,9 +100,10 @@ public class EntityOperation { long folder = message.folder; try { if (SEEN.equals(name)) { + boolean seen = jargs.getBoolean(0); boolean ignore = jargs.optBoolean(1, true); for (EntityMessage similar : db.message().getMessageByMsgId(message.account, message.msgid)) { - db.message().setMessageUiSeen(similar.id, jargs.getBoolean(0)); + db.message().setMessageUiSeen(similar.id, seen); db.message().setMessageUiIgnored(similar.id, ignore); }