mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Eliminate a variant of addOrUpdateMessage that was only called once
This commit is contained in:
parent
1c4a0be0da
commit
c608ffb672
@ -1641,7 +1641,13 @@ public class MessageList
|
||||
{
|
||||
if (updateForMe(account, folder))
|
||||
{
|
||||
addOrUpdateMessages(account,folder, messages);
|
||||
FolderInfoHolder f = mCurrentFolder;
|
||||
|
||||
// xxx "f"?
|
||||
if (f != null)
|
||||
{
|
||||
addOrUpdateMessages(account, mCurrentFolder, messages);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1750,18 +1756,6 @@ public class MessageList
|
||||
addOrUpdateMessages(account, folder, messages);
|
||||
}
|
||||
|
||||
private void addOrUpdateMessages(Account account, String folder, List<Message> messages)
|
||||
{
|
||||
FolderInfoHolder f = mCurrentFolder;
|
||||
|
||||
// xxx "f"?
|
||||
if (f != null)
|
||||
{
|
||||
addOrUpdateMessages(account, mCurrentFolder, messages);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void addOrUpdateMessages(Account account, FolderInfoHolder folder, List<Message> messages)
|
||||
{
|
||||
boolean needsSort = false;
|
||||
|
Loading…
Reference in New Issue
Block a user