Fixed bug whereby clicking a childcursor (feed) would call the wrong cursor

This commit is contained in:
RyanBateman 2012-08-27 10:15:36 -04:00
parent 6aac04e83b
commit 4f6b8f4f8a

View file

@ -142,13 +142,13 @@ public class MixedExpandableListAdapter extends BaseExpandableListAdapter{
@Override
public Cursor getChild(int groupPosition, int childPosition) {
groupPosition = groupPosition - blogCursorHelper.getCount();
groupPosition = groupPosition - blogCursorHelper.getCount() - 1;
return getChildrenCursorHelper(groupPosition, true).moveTo(childPosition);
}
@Override
public long getChildId(int groupPosition, int childPosition) {
groupPosition = groupPosition - blogCursorHelper.getCount();
groupPosition = groupPosition - blogCursorHelper.getCount() - 1;
return getChildrenCursorHelper(groupPosition, true).getId(childPosition);
}