mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Fix error duplicating false accounts when adding an account
This commit is contained in:
parent
4202ffe57d
commit
323159ef97
@ -207,6 +207,7 @@ public class AccountSetupBasics extends K9Activity
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if (mAccount == null)
|
||||||
mAccount = Preferences.getPreferences(this).newAccount();
|
mAccount = Preferences.getPreferences(this).newAccount();
|
||||||
mAccount.setName(getOwnerName());
|
mAccount.setName(getOwnerName());
|
||||||
mAccount.setEmail(email);
|
mAccount.setEmail(email);
|
||||||
@ -279,6 +280,7 @@ public class AccountSetupBasics extends K9Activity
|
|||||||
String user = emailParts[0];
|
String user = emailParts[0];
|
||||||
String domain = emailParts[1];
|
String domain = emailParts[1];
|
||||||
|
|
||||||
|
if (mAccount == null)
|
||||||
mAccount = Preferences.getPreferences(this).newAccount();
|
mAccount = Preferences.getPreferences(this).newAccount();
|
||||||
mAccount.setName(getOwnerName());
|
mAccount.setName(getOwnerName());
|
||||||
mAccount.setEmail(email);
|
mAccount.setEmail(email);
|
||||||
|
Loading…
Reference in New Issue
Block a user