private void addGlobalAttributesToIntent(Intent intent){
  if (!intent.hasExtra(Event.ATTRIBUTE_TIME)) {
    insertTimeStamp(intent);
  }
  if (!intent.hasExtra(Event.ATTRIBUTE_LOCATION)) {
    insertLocationData(intent);
  }
}

private void addGlobalAttributesToIntent ( Intent intent ) { if ( ! intent . hasExtra ( Event . ATTRIBUTE_TIME ) ) { insertTimeStamp ( intent ) ; } if ( ! intent . hasExtra ( Event . ATTRIBUTE_LOCATION ) ) { insertLocationData ( intent ) ; } }
add global attributes of an event to the extra values of the intent .
