Merge "Fix display of POP3 mailbox"

This commit is contained in:
Todd Kennedy 2011-05-17 14:35:10 -07:00 committed by Android (Google) Code Review
commit 18ad1651fa

View File

@ -153,6 +153,8 @@ public class Pop3Store extends Store {
public Folder[] updateFolders() { public Folder[] updateFolders() {
Mailbox mailbox = getMailboxForPath(mContext, mAccount.mId, POP3_MAILBOX_NAME); Mailbox mailbox = getMailboxForPath(mContext, mAccount.mId, POP3_MAILBOX_NAME);
updateMailbox(mailbox, mAccount.mId, POP3_MAILBOX_NAME, '\0', true, Mailbox.TYPE_INBOX); updateMailbox(mailbox, mAccount.mId, POP3_MAILBOX_NAME, '\0', true, Mailbox.TYPE_INBOX);
// Force the parent key to be "no mailbox" for the mail POP3 mailbox
mailbox.mParentKey = Mailbox.NO_MAILBOX;
if (mailbox.isSaved()) { if (mailbox.isSaved()) {
mailbox.update(mContext, mailbox.toContentValues()); mailbox.update(mContext, mailbox.toContentValues());
} else { } else {