fix header/footer item ID issue

fixes #4667
Closes #4685
// FREEBIE
This commit is contained in:
Jake McGinty
2015-11-22 16:04:49 -08:00
committed by Moxie Marlinspike
parent 4dce79334d
commit 473e470883
2 changed files with 13 additions and 25 deletions

View File

@@ -178,17 +178,6 @@ public class ContactSelectionListAdapter extends CursorRecyclerViewAdapter<ViewH
return cursor.getInt(cursor.getColumnIndexOrThrow(ContactsDatabase.CONTACT_TYPE_COLUMN)) == ContactsDatabase.PUSH_TYPE;
}
private Cursor getCursorAtPositionOrThrow(int position) {
Cursor cursor = getCursor();
if (cursor == null) {
throw new IllegalStateException("Cursor should not be null here.");
}
if (!cursor.moveToPosition(position)) {
throw new IllegalStateException("Cursor couldn't be moved to position.");
}
return cursor;
}
public interface ItemClickListener {
void onItemClick(ContactSelectionListItem item);
}