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:
parent
961872edf0
commit
bff1602da1
@ -3303,11 +3303,9 @@ public class LocalStore extends Store implements Serializable {
|
||||
|
||||
if (!isSet(Flag.DELETED)) {
|
||||
|
||||
if (flag == Flag.SEEN) {
|
||||
if (set != isSet(Flag.SEEN)) {
|
||||
if (flag == Flag.SEEN && set != isSet(Flag.SEEN)) {
|
||||
folder.setUnreadMessageCount(folder.getUnreadMessageCount() + (set ? -1 : 1));
|
||||
}
|
||||
}
|
||||
|
||||
if (flag == Flag.FLAGGED) {
|
||||
folder.setFlaggedMessageCount(folder.getFlaggedMessageCount() + (set ? 1 : -1));
|
||||
|
Loading…
Reference in New Issue
Block a user