mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 10:22:15 -05:00
notification that the dataset changed needs to happen on the UI thread.
This commit is contained in:
parent
48f2885cfc
commit
64c102dd14
@ -788,8 +788,14 @@ public class MessageList
|
|||||||
mAdapter.markAllMessagesAsDirty();
|
mAdapter.markAllMessagesAsDirty();
|
||||||
mController.listLocalMessagesSynchronous(mAccount, mFolderName, mAdapter.mListener);
|
mController.listLocalMessagesSynchronous(mAccount, mFolderName, mAdapter.mListener);
|
||||||
mAdapter.pruneDirtyMessages();
|
mAdapter.pruneDirtyMessages();
|
||||||
|
runOnUiThread(new Runnable()
|
||||||
|
{
|
||||||
|
public void run()
|
||||||
|
{
|
||||||
mAdapter.notifyDataSetChanged();
|
mAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.start();
|
.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user