am 754240bc: Fix race condition in testMultiple()

Merge commit '754240bcf3ccc8492a50ba9ee8056b34f6e4e8d0' into eclair-mr2

* commit '754240bcf3ccc8492a50ba9ee8056b34f6e4e8d0':
  Fix race condition in testMultiple()
This commit is contained in:
Andrew Stadler 2009-10-13 12:43:20 -07:00 committed by Android Git Automerger
commit b7c67a0124

View File

@ -752,6 +752,9 @@ public class MessageList extends ListActivity implements OnItemClickListener, On
*/
private boolean testMultiple(Set<Long> selectedSet, int column_id, boolean defaultflag) {
Cursor c = mListAdapter.getCursor();
if (c == null || c.isClosed()) {
return false;
}
c.moveToPosition(-1);
while (c.moveToNext()) {
long id = c.getInt(MessageListAdapter.COLUMN_ID);