/** * prepares the update of the view after the group descriptor was changed */ public void prepareReload() { mAdapter = new ExpandableGroupDescriptorAdapter(getActivity(), getLoaderManager(), mGroupDescriptor); mExpandableListView.setAdapter(mAdapter); mExpandableListView.setOnChildClickListener((android.widget.ExpandableListView.OnChildClickListener) mTaskItemClickListener); mExpandableListView.setOnGroupCollapseListener((android.widget.ExpandableListView.OnGroupCollapseListener) mTaskListCollapseListener); mAdapter.setOnChildLoadedListener(this); mAdapter.setChildCursorFilter(COMPLETED_FILTER); restoreFilterState(); }
/** * @see ExpandableListView#setOnGroupCollapseListener(OnGroupCollapseListener) */ public W setOnGroupCollapseListener(OnGroupCollapseListener onGroupCollapseListener) { mView.setOnGroupCollapseListener(onGroupCollapseListener); return (W) this; }
@Override public void setOnGroupCollapseListener( OnGroupCollapseListener onGroupCollapseListener) { mOnGroupCollapseListener = onGroupCollapseListener; }