Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

public class WrapperExpandableListAdapter extends BaseExpandableListAdapter {

private final ExpandableListAdapter mWrappedAdapter;
private final BaseExpandableListAdapter mWrappedAdapter;
private final SparseBooleanArray mGroupExpandedMap = new SparseBooleanArray();

public WrapperExpandableListAdapter(ExpandableListAdapter adapter) {
public WrapperExpandableListAdapter(BaseExpandableListAdapter adapter) {
mWrappedAdapter = adapter;
}

Expand All @@ -36,6 +36,26 @@ public int getChildrenCount(int groupPosition) {
return mWrappedAdapter.getChildrenCount(groupPosition);
}

@Override
public int getChildType(int groupPosition, int childPosition) {
return mWrappedAdapter.getChildType(groupPosition, childPosition);
}

@Override
public int getChildTypeCount() {
return mWrappedAdapter.getChildTypeCount();
}

@Override
public int getGroupType(int groupPosition) {
return mWrappedAdapter.getGroupType(groupPosition);
}

@Override
public int getGroupTypeCount() {
return mWrappedAdapter.getGroupTypeCount();
}

@Override
public Object getGroup(int groupPosition) {
return mWrappedAdapter.getGroup(groupPosition);
Expand Down