mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28: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:
parent
0e5b5de409
commit
14152a8585
@ -6277,7 +6277,7 @@ public class LocalStore extends Store implements Serializable, LocalStoreMigrati
|
|||||||
LocalFolder folder = (LocalFolder)mFolder;
|
LocalFolder folder = (LocalFolder)mFolder;
|
||||||
if (flag == Flag.DELETED || flag == Flag.X_DESTROYED)
|
if (flag == Flag.DELETED || flag == Flag.X_DESTROYED)
|
||||||
{
|
{
|
||||||
if (set != isSet(Flag.SEEN))
|
if (!isSet(Flag.SEEN))
|
||||||
{
|
{
|
||||||
folder.setUnreadMessageCount(folder.getUnreadMessageCount() + ( set ? -1:1) );
|
folder.setUnreadMessageCount(folder.getUnreadMessageCount() + ( set ? -1:1) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user