public boolean isGroupExpanded(int groupPosition){
  GroupMetadata groupMetadata;
  for (int i=mExpGroupMetadataList.size() - 1; i >= 0; i--) {
    groupMetadata=mExpGroupMetadataList.get(i);
    if (groupMetadata.gPos == groupPosition) {
      return true;
    }
  }
  return false;
}

public boolean isGroupExpanded ( int groupPosition ) { GroupMetadata groupMetadata ; for ( int i = mExpGroupMetadataList . size ( ) - 1 ; i >= 0 ; i -- ) { groupMetadata = mExpGroupMetadataList . get ( i ) ; if ( groupMetadata . gPos == groupPosition ) { return true ; } } return false ; }
whether the given group is currently expanded .
