am 1a38750f: am 67a1eec3: am 70f807fb: am 5ae1599a: am 0b693a05: Merge "Fix subfolders of the inbox." into ub-gmail-ur14-dev

* commit '1a38750f90e2971d38d8385557b33a746a6bce49':
  Fix subfolders of the inbox.
This commit is contained in:
Martin Hibdon 2014-11-02 19:02:21 +00:00 committed by Android Git Automerger
commit 5eb19a6d6d
1 changed files with 5 additions and 0 deletions

View File

@ -321,6 +321,11 @@ public class ImapStore extends Store {
String parentPath = null;
if (delimiterIdx != -1) {
parentPath = path.substring(0, delimiterIdx);
if (ImapConstants.INBOX.equalsIgnoreCase(parentPath)) {
// The Inbox is added as a special case, and always in all caps. In reality,
// it might not be in all caps, this folder's parent path might have mixed case.
parentPath = ImapConstants.INBOX;
}
final ImapFolder parentFolder = mailboxes.get(parentPath);
final Mailbox parentMailbox = (parentFolder == null) ? null : parentFolder.mMailbox;
if (parentMailbox != null) {