mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 05:02:26 -05:00
IMAP Search: log exceptions on remote search, properly dispatch MessageList changes.
This commit is contained in:
parent
df75a9fbfa
commit
1ef930090e
@ -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
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user