1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Don't compare whether we're setting the delete flag with whether the

message is seen or not. (logic error)
This commit is contained in:
Jesse Vincent 2010-11-21 05:31:38 +00:00
parent 0e5b5de409
commit 14152a8585

View File

@ -6277,7 +6277,7 @@ public class LocalStore extends Store implements Serializable, LocalStoreMigrati
LocalFolder folder = (LocalFolder)mFolder;
if (flag == Flag.DELETED || flag == Flag.X_DESTROYED)
{
if (set != isSet(Flag.SEEN))
if (!isSet(Flag.SEEN))
{
folder.setUnreadMessageCount(folder.getUnreadMessageCount() + ( set ? -1:1) );
}