1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 03:32:16 -05:00

IMAP Search: log exceptions on remote search, properly dispatch MessageList changes.

This commit is contained in:
Andrew Chen 2012-09-10 16:43:42 -07:00
parent df75a9fbfa
commit 1ef930090e
2 changed files with 2 additions and 3 deletions

View File

@ -1704,8 +1704,6 @@ public class MessageList extends K9ListActivity implements OnItemClickListener {
private final ActivityListener mListener = new ActivityListener() {
// TODO achen - may need to add a setSupportProgress to mHandler to run on the UI thread.
@Override
public void remoteSearchAddMessage(Account account, String folderName, Message message, final int numDone, final int numTotal) {
@ -1715,7 +1713,7 @@ public class MessageList extends K9ListActivity implements OnItemClickListener {
setSupportProgress(Window.PROGRESS_END);
}
addOrUpdateMessages(account, folderName, Collections.singletonList(message), false);
mHandler.addOrUpdateMessages(account, folderName, Collections.singletonList(message), false);
}
@Override

View File

@ -855,6 +855,7 @@ public class MessagingController implements Runnable {
} catch (Exception e) {
Log.e(K9.LOG_TAG, "Could not complete remote search", e);
if (listener != null) {
listener.remoteSearchFailed(acct, null, e.getMessage());
}