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:
commit
b7c67a0124
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user