public void collapse ( boolean notifyItemChanged ) { int [ ] expandedItems = getExpandedItems ( ) ; for ( int i = expandedItems . length - 1 ; i >= 0 ; i -- ) { collapse ( expandedItems [ i ] , notifyItemChanged ) ; } }
collapses all expanded items