@Override public void onSensorSelectionClosed(DialogFragment dialog){
  Log.d(TAG,"Sensor selection closed");
  sensorSelectionDialog=null;
}

@ Override public void onSensorSelectionClosed ( DialogFragment dialog ) { Log . d ( TAG , "Sensor selection closed" ) ; sensorSelectionDialog = null ; }
will be called if the sensor selection dialog has been closed
