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:
parent
e0d2c9e10d
commit
bc2127c84a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user