mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-12 06:08:25 -05:00
Automatically fix folder selections.
This commit is contained in:
parent
bf98b5c2af
commit
388969d76c
@ -129,6 +129,28 @@ public class Account implements Serializable {
|
|||||||
"Trash");
|
"Trash");
|
||||||
mOutboxFolderName = preferences.mSharedPreferences.getString(mUuid + ".outboxFolderName",
|
mOutboxFolderName = preferences.mSharedPreferences.getString(mUuid + ".outboxFolderName",
|
||||||
"Outbox");
|
"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",
|
mAutoExpandFolderName = preferences.mSharedPreferences.getString(mUuid + ".autoExpandFolderName",
|
||||||
"Inbox");
|
"Inbox");
|
||||||
mAccountNumber = preferences.mSharedPreferences.getInt(mUuid + ".accountNumber", 0);
|
mAccountNumber = preferences.mSharedPreferences.getInt(mUuid + ".accountNumber", 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user