diff --git a/FloatingGroupExpandableListView/src/com/diegocarloslima/fgelv/lib/WrapperExpandableListAdapter.java b/FloatingGroupExpandableListView/src/com/diegocarloslima/fgelv/lib/WrapperExpandableListAdapter.java index dfc0724..1d25f5d 100644 --- a/FloatingGroupExpandableListView/src/com/diegocarloslima/fgelv/lib/WrapperExpandableListAdapter.java +++ b/FloatingGroupExpandableListView/src/com/diegocarloslima/fgelv/lib/WrapperExpandableListAdapter.java @@ -123,4 +123,36 @@ public boolean isGroupExpanded(int groupPosition) { final Boolean expanded = mGroupExpandedMap.get(groupPosition); return expanded != null ? expanded : false; } + + @Override + public int getChildType(int groupPosition, int childPosition) { + if (this.mWrappedAdapter instanceof BaseExpandableListAdapter) + return ((BaseExpandableListAdapter) this.mWrappedAdapter).getChildType(groupPosition, childPosition); + + return super.getChildType(groupPosition, childPosition); + } + + + @Override + public int getChildTypeCount() { + if (this.mWrappedAdapter instanceof BaseExpandableListAdapter) + return ((BaseExpandableListAdapter) this.mWrappedAdapter).getChildTypeCount(); + + return super.getChildTypeCount(); + } + + + @Override + public int getGroupType(int groupPosition) { + if (this.mWrappedAdapter instanceof BaseExpandableListAdapter) + return ((BaseExpandableListAdapter) this.mWrappedAdapter).getGroupType(groupPosition); + return super.getGroupType(groupPosition); + } + + @Override + public int getGroupTypeCount() { + if (this.mWrappedAdapter instanceof BaseExpandableListAdapter) + return ((BaseExpandableListAdapter) this.mWrappedAdapter).getGroupTypeCount(); + return super.getGroupTypeCount(); + } }