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:
cketti 2016-04-02 23:24:35 +02:00
commit 15a44ce57b

View file

@ -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;
}
}