private void refreshSelectedTags(){
  final int countOfSelectedTags=mSelectedTags.size();
  Tag eachTag;
  for (  final TextView eachView : mTagViewMap.values()) {
    eachTag=(Tag)eachView.getTag();
    if (mSelectedTags.contains(eachTag.id)) {
      eachView.setSelected(true);
    }
 else {
      eachView.setSelected(false);
    }
  }
}

private void refreshSelectedTags ( ) { final int countOfSelectedTags = mSelectedTags . size ( ) ; Tag eachTag ; for ( final TextView eachView : mTagViewMap . values ( ) ) { eachTag = ( Tag ) eachView . getTag ( ) ; if ( mSelectedTags . contains ( eachTag . id ) ) { eachView . setSelected ( true ) ; } else { eachView . setSelected ( false ) ; } } }
iterates through the displayed textviews and sets them as selected based on whether the associated tag is present in the selected tags list or not
