mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Unify our "guard" against syncing the outbox or errors folder
This commit is contained in:
parent
e2f84c4fa8
commit
854da2664c
@ -716,13 +716,9 @@ public class MessagingController implements Runnable
|
||||
public void synchronizeMailboxSynchronous(final Account account, final String folder, final MessagingListener listener)
|
||||
{
|
||||
/*
|
||||
* We don't ever sync the Outbox.
|
||||
* We don't ever sync the Outbox or errors folder
|
||||
*/
|
||||
if (folder.equals(account.getOutboxFolderName()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (account.getErrorFolderName().equals(folder))
|
||||
if (folder.equals(account.getOutboxFolderName()) || folder.equals(account.getErrorFolderName()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user