am 22130ad5
: Sync folders during account sync.
* commit '22130ad565886c29666be55b5fdcbe0be9894b6e': Sync folders during account sync.
This commit is contained in:
commit
1e05e8343f
@ -212,14 +212,12 @@ public class PopImapSyncAdapterService extends Service {
|
||||
Mailbox.NO_MAILBOX);
|
||||
boolean isInbox = false;
|
||||
if (mailboxId == Mailbox.NO_MAILBOX) {
|
||||
// Update folders.
|
||||
EmailServiceProxy service =
|
||||
EmailServiceUtils.getServiceForAccount(context, null, acct.mId);
|
||||
service.updateFolderList(acct.mId);
|
||||
mailboxId = Mailbox.findMailboxOfType(context, acct.mId,
|
||||
Mailbox.TYPE_INBOX);
|
||||
if (mailboxId == Mailbox.NO_MAILBOX) {
|
||||
// Update folders?
|
||||
EmailServiceProxy service =
|
||||
EmailServiceUtils.getServiceForAccount(context, null, acct.mId);
|
||||
service.updateFolderList(acct.mId);
|
||||
}
|
||||
isInbox = true;
|
||||
}
|
||||
if (mailboxId == Mailbox.NO_MAILBOX) return;
|
||||
|
Loading…
Reference in New Issue
Block a user