public void addOnTabSelectedListener(OnTabSelectedListener listener){
  if (listener != null) {
    mListeners.add(listener);
  }
}

public void addOnTabSelectedListener ( OnTabSelectedListener listener ) { if ( listener != null ) { mListeners . add ( listener ) ; } }
adds a listener for when tabs are selected , reselected , or deselected
