mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
combined nested if statements in MessageList.removeMessages()
This commit is contained in:
parent
e3853824db
commit
dd5ab2c2c6
@ -362,15 +362,15 @@ public class MessageList
|
||||
@Override
|
||||
public void run() {
|
||||
for (MessageInfoHolder message : messages) {
|
||||
if (message != null) {
|
||||
if (mFolderName == null || (message.folder != null && message.folder.name.equals(mFolderName))) {
|
||||
if (message != null && (mFolderName == null || (
|
||||
message.folder != null &&
|
||||
message.folder.name.equals(mFolderName)))) {
|
||||
if (message.selected && mSelectedCount > 0) {
|
||||
mSelectedCount--;
|
||||
}
|
||||
mAdapter.messages.remove(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
resetUnreadCountOnThread();
|
||||
|
||||
mAdapter.notifyDataSetChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user