mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-25 23:21:50 -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 (!isSet(Flag.DELETED)) {
|
||||||
|
|
||||||
if (flag == Flag.SEEN) {
|
if (flag == Flag.SEEN && set != isSet(Flag.SEEN)) {
|
||||||
if (set != isSet(Flag.SEEN)) {
|
folder.setUnreadMessageCount(folder.getUnreadMessageCount() + (set ? -1 : 1));
|
||||||
folder.setUnreadMessageCount(folder.getUnreadMessageCount() + (set ? -1 : 1));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flag == Flag.FLAGGED) {
|
if (flag == Flag.FLAGGED) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user