From e07ecb8864b2b77270a1fa4844d6614c93c7291b Mon Sep 17 00:00:00 2001 From: Todd Kennedy Date: Tue, 17 May 2011 14:18:40 -0700 Subject: [PATCH] Fix display of POP3 mailbox When legacy support for mailboxes with a parent key of '0' was removed, the parent key for POP3 mailboxes was not updated. This forces the parent key for all POP3 mailboxes to be "no mailbox". If we ever want to support virtual mailboxes for POP3 accounts, this will need to be adjusted. Change-Id: I4ae0e386db4bcdaf559b87ca17cbe0d151dea75b --- src/com/android/email/mail/store/Pop3Store.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/email/mail/store/Pop3Store.java b/src/com/android/email/mail/store/Pop3Store.java index f3c4fb15a..d3a5054d2 100644 --- a/src/com/android/email/mail/store/Pop3Store.java +++ b/src/com/android/email/mail/store/Pop3Store.java @@ -153,6 +153,8 @@ public class Pop3Store extends Store { public Folder[] updateFolders() { Mailbox mailbox = getMailboxForPath(mContext, mAccount.mId, POP3_MAILBOX_NAME); 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()) { mailbox.update(mContext, mailbox.toContentValues()); } else {