Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug_23 - Adding support for proper view recycling with different view… #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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