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
This commit is contained in:
parent
518fc490b2
commit
e07ecb8864
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user