Sync folders during account sync.
Previously, the folderlist itself would only sync when there was no inbox, i.e. at account creation time. Now any sync that's not a mailbox specific sync will do it. Change-Id: If7c446cd2e193ed6e1a4abd3fdde0d5748371ba5
This commit is contained in:
parent
64cc777f8b
commit
22130ad565
@ -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