"Fix" Inboxes in non-English languages for IMAP.
Without this change, languages where the inbox is not named "Inbox" will never initialize IMAP accounts correctly. This change "works" because LegacyConversions.inferMailboxTypeFromName matches against server name. Obviously this code's bad and I should feel bad, but for now this change at least makes the app usable in other languages and leaves the code in the simplest state for fixing later. Bug: 8393126 Change-Id: I27b422b4b9a3568c899beda41c96e61eb77c4ad3
This commit is contained in:
parent
8e2c4056ca
commit
5187e702d6
|
@ -399,7 +399,7 @@ public class ImapStore extends Store {
|
|||
mailboxes.put(folderName, folder);
|
||||
}
|
||||
}
|
||||
String inboxName = mContext.getString(R.string.mailbox_name_display_inbox);
|
||||
String inboxName = mContext.getString(R.string.mailbox_name_server_inbox);
|
||||
Folder newFolder =
|
||||
addMailbox(mContext, mAccount.mId, inboxName, '\0', true /*selectable*/);
|
||||
mailboxes.put(ImapConstants.INBOX, (ImapFolder)newFolder);
|
||||
|
|
Loading…
Reference in New Issue