From 5d33bc044bbc727a30d0cd88ba218c7181f5963d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 21 Nov 2010 05:31:42 +0000 Subject: [PATCH] when a message is seen _decrement_ the unread count, don't increment it --- src/com/fsck/k9/mail/store/LocalStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index 300f16d51..499ee7012 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -6295,7 +6295,7 @@ public class LocalStore extends Store implements Serializable, LocalStoreMigrati { if (set != isSet(Flag.SEEN)) { - folder.setUnreadMessageCount(folder.getUnreadMessageCount() + ( set ? 1: -1) ); + folder.setUnreadMessageCount(folder.getUnreadMessageCount() + ( set ? -1: 1) ); } }