am 22130ad5: Sync folders during account sync.

* commit '22130ad565886c29666be55b5fdcbe0be9894b6e':
  Sync folders during account sync.
This commit is contained in:
Yu Ping Hu 2013-04-15 10:57:41 -07:00 committed by Android Git Automerger
commit 1e05e8343f

View File

@ -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;