public void setChangeLog ( ChangeLog log ) { mChangeLog = log ; // Clear out any existing entries clear ( ) ; //sort all the changes Collections . sort ( mChangeLog . versions , new VersionComparator ( ) ) ; // Iterate and add all the 'Change' objects in the adapter for ( Version version : mChangeLog . versions ) { addAll ( version . changes ) ; } // Notify content has changed notifyDataSetChanged ( ) ; }
Set the changelog for this adapter