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,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user