1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

in the account list, when trying to check mail, also try to send mail

This commit is contained in:
Jesse Vincent 2010-11-13 01:46:31 +00:00
parent af5f78928c
commit 0f4366aa77

View File

@ -478,6 +478,15 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
private void onCheckMail(Account account)
{
MessagingController.getInstance(getApplication()).checkMail(this, account, true, true, null);
if (account == null)
{
MessagingController.getInstance(getApplication()).sendPendingMessages(null);
}
else
{
MessagingController.getInstance(getApplication()).sendPendingMessages(account, null);
}
}
private void onClearCommands(Account account)