1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

notification that the dataset changed needs to happen on the UI thread.

This commit is contained in:
Jesse Vincent 2010-10-21 20:49:48 +00:00
parent 48f2885cfc
commit 64c102dd14
3 changed files with 12 additions and 6 deletions

View File

@ -155,7 +155,7 @@ public class K9 extends Application
private static boolean mMeasureAccounts = true; private static boolean mMeasureAccounts = true;
private static boolean mCountSearchMessages = true; private static boolean mCountSearchMessages = true;
private static boolean mZoomControlsEnabled = false; private static boolean mZoomControlsEnabled = false;
private static boolean mMobileOptimizedLayout = false; private static boolean mMobileOptimizedLayout = false;
private static boolean useGalleryBugWorkaround = false; private static boolean useGalleryBugWorkaround = false;
private static boolean galleryBuggy; private static boolean galleryBuggy;

View File

@ -788,7 +788,13 @@ public class MessageList
mAdapter.markAllMessagesAsDirty(); mAdapter.markAllMessagesAsDirty();
mController.listLocalMessagesSynchronous(mAccount, mFolderName, mAdapter.mListener); mController.listLocalMessagesSynchronous(mAccount, mFolderName, mAdapter.mListener);
mAdapter.pruneDirtyMessages(); mAdapter.pruneDirtyMessages();
mAdapter.notifyDataSetChanged(); runOnUiThread(new Runnable()
{
public void run()
{
mAdapter.notifyDataSetChanged();
}
});
} }
} }

View File

@ -484,9 +484,9 @@ public class MessageProvider extends ContentProvider
} }
/* (non-Javadoc) /* (non-Javadoc)
* *
* Close the underlying cursor and dereference it. * Close the underlying cursor and dereference it.
* *
* @see android.database.Cursor#close() * @see android.database.Cursor#close()
*/ */
@Override @Override
@ -508,9 +508,9 @@ public class MessageProvider extends ContentProvider
} }
/* (non-Javadoc) /* (non-Javadoc)
* *
* Making sure cursor gets closed on garbage collection * Making sure cursor gets closed on garbage collection
* *
* @see java.lang.Object#finalize() * @see java.lang.Object#finalize()
*/ */
@Override @Override