private void onModeSelected(int modeIndex){
  if (mModeSwitchListener != null) {
    mModeSwitchListener.onModeSelected(modeIndex);
  }
}

private void onModeSelected ( int modeIndex ) { if ( mModeSwitchListener != null ) { mModeSwitchListener . onModeSelected ( modeIndex ) ; } }
notify modeswitchlistener , if any , of the mode change .
