Automatically fix folder selections.
This commit is contained in:
parent
bf98b5c2af
commit
388969d76c
1 changed files with 22 additions and 0 deletions
|
@ -129,6 +129,28 @@ public class Account implements Serializable {
|
|||
"Trash");
|
||||
mOutboxFolderName = preferences.mSharedPreferences.getString(mUuid + ".outboxFolderName",
|
||||
"Outbox");
|
||||
|
||||
// Between r418 and r431 (version 0.103), folder names were set empty if the Incoming settings were
|
||||
// opened for non-IMAP accounts. 0.103 was never a market release, so perhaps this code
|
||||
// should be deleted sometime soon
|
||||
if (mDraftsFolderName == null || mDraftsFolderName.equals(""))
|
||||
{
|
||||
mDraftsFolderName = "Drafts";
|
||||
}
|
||||
if (mSentFolderName == null || mSentFolderName.equals(""))
|
||||
{
|
||||
mSentFolderName = "Sent";
|
||||
}
|
||||
if (mTrashFolderName == null || mTrashFolderName.equals(""))
|
||||
{
|
||||
mTrashFolderName = "Trash";
|
||||
}
|
||||
if (mOutboxFolderName == null || mOutboxFolderName.equals(""))
|
||||
{
|
||||
mOutboxFolderName = "Outbox";
|
||||
}
|
||||
// End of 0.103 repair
|
||||
|
||||
mAutoExpandFolderName = preferences.mSharedPreferences.getString(mUuid + ".autoExpandFolderName",
|
||||
"Inbox");
|
||||
mAccountNumber = preferences.mSharedPreferences.getInt(mUuid + ".accountNumber", 0);
|
||||
|
|
Loading…
Reference in a new issue