1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

combined nested if statements in LocalStore

This commit is contained in:
András Veres-Szentkirályi 2012-07-06 14:24:16 +02:00
parent 961872edf0
commit bff1602da1

View File

@ -3303,10 +3303,8 @@ public class LocalStore extends Store implements Serializable {
if (!isSet(Flag.DELETED)) {
if (flag == Flag.SEEN) {
if (set != isSet(Flag.SEEN)) {
folder.setUnreadMessageCount(folder.getUnreadMessageCount() + (set ? -1 : 1));
}
if (flag == Flag.SEEN && set != isSet(Flag.SEEN)) {
folder.setUnreadMessageCount(folder.getUnreadMessageCount() + (set ? -1 : 1));
}
if (flag == Flag.FLAGGED) {