mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-30 23:00:09 -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()
|
||||
{
|
||||
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();
|
||||
@ -895,9 +901,6 @@ public class MessagingController implements Runnable
|
||||
listener.searchStats(stats);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void loadMoreMessages(Account account, String folder, MessagingListener listener)
|
||||
{
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user