Fix error duplicating false accounts when adding an account
This commit is contained in:
parent
4202ffe57d
commit
323159ef97
1 changed files with 4 additions and 2 deletions
|
@ -207,7 +207,8 @@ public class AccountSetupBasics extends K9Activity
|
|||
|
||||
|
||||
}
|
||||
mAccount = Preferences.getPreferences(this).newAccount();
|
||||
if (mAccount == null)
|
||||
mAccount = Preferences.getPreferences(this).newAccount();
|
||||
mAccount.setName(getOwnerName());
|
||||
mAccount.setEmail(email);
|
||||
mAccount.setStoreUri(incomingUri.toString());
|
||||
|
@ -279,7 +280,8 @@ public class AccountSetupBasics extends K9Activity
|
|||
String user = emailParts[0];
|
||||
String domain = emailParts[1];
|
||||
|
||||
mAccount = Preferences.getPreferences(this).newAccount();
|
||||
if (mAccount == null)
|
||||
mAccount = Preferences.getPreferences(this).newAccount();
|
||||
mAccount.setName(getOwnerName());
|
||||
mAccount.setEmail(email);
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue