public void finishFragments(){
  for (  Fragment comment : closingFragments) {
    finishFragment(comment);
  }
  closingFragments.clear();
}

public void finishFragments ( ) { for ( Fragment comment : closingFragments ) { finishFragment ( comment ) ; } closingFragments . clear ( ) ; }
sets all the closing fragments into finished state .
