1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

add a variant of sendPendingMessages that will send pending messages in all accounts

This commit is contained in:
Jesse Vincent 2010-10-25 03:18:51 +00:00
parent 0afc738e2a
commit 968fb8c508

View File

@ -3360,6 +3360,18 @@ public class MessagingController implements Runnable
} }
} }
public void sendPendingMessages(MessagingListener listener)
{
final Preferences prefs = Preferences.getPreferences(mApplication.getApplicationContext());
Account[] accounts = prefs.getAccounts();
for (Account account : accounts)
{
sendPendingMessages(account, listener);
}
}
/** /**
* Attempt to send any messages that are sitting in the Outbox. * Attempt to send any messages that are sitting in the Outbox.
* @param account * @param account