Loading k9mail/src/main/java/io/eelo/mail/activity/Accounts.java +18 −7 Original line number Diff line number Diff line Loading @@ -640,11 +640,28 @@ public class Accounts extends K9ListActivity implements OnItemClickListener { @Override public void onResume() { super.onResume(); mListener.onResume(this); List<Account> accounts = Preferences.getPreferences(this).getAccounts(); removeOldAccountsAutomatically(accounts); accounts = Preferences.getPreferences(this).getAccounts(); if (addNewAccountsAutomatically(accounts)) { Accounts.listAccounts(this); finish(); return; } if (accounts.size() < 1) { AccountSetupActivity.actionNewAccount(this); finish(); } refresh(); MessagingController.getInstance(getApplication()).addListener(mListener); StorageManager.getInstance(getApplication()).addListener(storageListener); mListener.onResume(this); } @Override Loading Loading @@ -691,12 +708,6 @@ public class Accounts extends K9ListActivity implements OnItemClickListener { accounts.clear(); accounts.addAll(Preferences.getPreferences(this).getAccounts()); // see if we should show the welcome message // if (accounts.length < 1) { // WelcomeMessage.showWelcomeMessage(this); // finish(); // } List<BaseAccount> newAccounts; if (!K9.isHideSpecialAccounts() && accounts.size() > 0) { if (unifiedInboxAccount == null || allMessagesAccount == null) { Loading Loading
k9mail/src/main/java/io/eelo/mail/activity/Accounts.java +18 −7 Original line number Diff line number Diff line Loading @@ -640,11 +640,28 @@ public class Accounts extends K9ListActivity implements OnItemClickListener { @Override public void onResume() { super.onResume(); mListener.onResume(this); List<Account> accounts = Preferences.getPreferences(this).getAccounts(); removeOldAccountsAutomatically(accounts); accounts = Preferences.getPreferences(this).getAccounts(); if (addNewAccountsAutomatically(accounts)) { Accounts.listAccounts(this); finish(); return; } if (accounts.size() < 1) { AccountSetupActivity.actionNewAccount(this); finish(); } refresh(); MessagingController.getInstance(getApplication()).addListener(mListener); StorageManager.getInstance(getApplication()).addListener(storageListener); mListener.onResume(this); } @Override Loading Loading @@ -691,12 +708,6 @@ public class Accounts extends K9ListActivity implements OnItemClickListener { accounts.clear(); accounts.addAll(Preferences.getPreferences(this).getAccounts()); // see if we should show the welcome message // if (accounts.length < 1) { // WelcomeMessage.showWelcomeMessage(this); // finish(); // } List<BaseAccount> newAccounts; if (!K9.isHideSpecialAccounts() && accounts.size() > 0) { if (unifiedInboxAccount == null || allMessagesAccount == null) { Loading