Merge pull request #1233 from k9mail/accountMoveBug
No longer adding a new account twice to the list of ordered accounts
This commit is contained in:
commit
15a44ce57b
1 changed files with 3 additions and 1 deletions
|
@ -61,7 +61,9 @@ public class Preferences {
|
|||
}
|
||||
if ((newAccount != null) && newAccount.getAccountNumber() != -1) {
|
||||
accounts.put(newAccount.getUuid(), newAccount);
|
||||
accountsInOrder.add(newAccount);
|
||||
if (!accountsInOrder.contains(newAccount)) {
|
||||
accountsInOrder.add(newAccount);
|
||||
}
|
||||
newAccount = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue