mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28:50 -05:00
add a variant of sendPendingMessages that will send pending messages in all accounts
This commit is contained in:
parent
0afc738e2a
commit
968fb8c508
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user