public final void setAdapter ( @ Nullable final ExpandableListAdapter adapter ) { expandedGroups . clear ( ) ; if ( adapter != null ) { this . adapter = new AdapterWrapper ( adapter ) ; super . setAdapter ( this . adapter ) ; } else { this . adapter = null ; super . setAdapter ( null ) ; } }
Sets the adapter that provides data to this view .