1
0
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:
Jesse Vincent 2009-12-18 02:35:46 +00:00
parent dc543fa9e3
commit 157455f26b

View File

@ -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