mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
As part of a refactoring move the "start" callback into the subthread.
This commit is contained in:
parent
dc543fa9e3
commit
157455f26b
@ -555,20 +555,20 @@ public class MessagingController implements Runnable
|
||||
*/
|
||||
public void listLocalMessages(final Account account, final String folder, final MessagingListener listener)
|
||||
{
|
||||
for (MessagingListener l : getListeners())
|
||||
{
|
||||
l.listLocalMessagesStarted(account, folder);
|
||||
}
|
||||
|
||||
if (listener != null && getListeners().contains(listener) == false)
|
||||
{
|
||||
listener.listLocalMessagesStarted(account, folder);
|
||||
}
|
||||
|
||||
threadPool.execute(new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
for (MessagingListener l : getListeners())
|
||||
{
|
||||
l.listLocalMessagesStarted(account, folder);
|
||||
}
|
||||
|
||||
if (listener != null && getListeners().contains(listener) == false)
|
||||
{
|
||||
listener.listLocalMessagesStarted(account, folder);
|
||||
}
|
||||
|
||||
Folder localFolder = null;
|
||||
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user