diff --git a/app/ui/src/main/java/com/fsck/k9/activity/Accounts.java b/app/ui/src/main/java/com/fsck/k9/activity/Accounts.java index 050f883fd..2f338d3ee 100644 --- a/app/ui/src/main/java/com/fsck/k9/activity/Accounts.java +++ b/app/ui/src/main/java/com/fsck/k9/activity/Accounts.java @@ -373,7 +373,9 @@ public class Accounts extends K9ListActivity implements OnItemClickListener { createSpecialAccounts(); } - List accounts = Preferences.getPreferences(this).getAccounts(); + Preferences preferences = Preferences.getPreferences(this); + preferences.loadAccounts(); + List accounts = preferences.getAccounts(); Intent intent = getIntent(); //onNewIntent(intent); @@ -538,8 +540,10 @@ public class Accounts extends K9ListActivity implements OnItemClickListener { private void refresh() { + Preferences preferences = Preferences.getPreferences(this); + preferences.loadAccounts(); accounts.clear(); - accounts.addAll(Preferences.getPreferences(this).getAccounts()); + accounts.addAll(preferences.getAccounts()); // see if we should show the welcome message // if (accounts.length < 1) {