1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-14 21:45:14 -05:00

added a synchronous variant of searchLocalMessages

This commit is contained in:
Jesse Vincent 2010-10-23 15:19:47 +00:00
parent e0d2c9e10d
commit bc2127c84a

View File

@ -706,6 +706,12 @@ public class MessagingController implements Runnable
threadPool.execute(new Runnable() threadPool.execute(new Runnable()
{ {
public void run() public void run()
{
searchLocalMessagesSynchronous(accountUuids,folderNames, messages, query, integrate, requiredFlags, forbiddenFlags, listener);
}
});
}
public void searchLocalMessagesSynchronous(final String[] accountUuids, final String[] folderNames, final Message[] messages, final String query, final boolean integrate, final Flag[] requiredFlags, final Flag[] forbiddenFlags, final MessagingListener listener)
{ {
final AccountStats stats = new AccountStats(); final AccountStats stats = new AccountStats();
@ -895,9 +901,6 @@ public class MessagingController implements Runnable
listener.searchStats(stats); listener.searchStats(stats);
} }
} }
});
}
public void loadMoreMessages(Account account, String folder, MessagingListener listener) public void loadMoreMessages(Account account, String folder, MessagingListener listener)
{ {
try try