From 5187e702d6a363af625bdcc9db1d3131c914927a Mon Sep 17 00:00:00 2001 From: Yu Ping Hu Date: Thu, 14 Mar 2013 18:43:21 -0700 Subject: [PATCH] "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 --- src/com/android/email/mail/store/ImapStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/mail/store/ImapStore.java b/src/com/android/email/mail/store/ImapStore.java index 3ac09bf33..3e9696604 100644 --- a/src/com/android/email/mail/store/ImapStore.java +++ b/src/com/android/email/mail/store/ImapStore.java @@ -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);