public static void showProfile(android.support.v4.app.Fragment fragment,String pilotId,@Nullable HashMap<String,String> extras){
  if ((pilotId == null || pilotId.isEmpty()) && AirMap.hasValidAuthenticatedUser()) {
    pilotId=AirMap.getUserId();
  }
  Intent intent=new Intent(fragment.getContext(),ProfileActivity.class);
  intent.putExtra(ProfileActivity.ARG_PILOT_ID,pilotId);
  if (extras != null) {
    intent.putExtra(CreateFlightActivity.KEY_VALUE_EXTRAS,extras);
  }
  fragment.startActivity(intent);
}

public static void showProfile ( android . support . v4 . app . Fragment fragment , String pilotId , @ Nullable HashMap < String , String > extras ) { if ( ( pilotId == null || pilotId . isEmpty ( ) ) && AirMap . hasValidAuthenticatedUser ( ) ) { pilotId = AirMap . getUserId ( ) ; } Intent intent = new Intent ( fragment . getContext ( ) , ProfileActivity . class ) ; intent . putExtra ( ProfileActivity . ARG_PILOT_ID , pilotId ) ; if ( extras != null ) { intent . putExtra ( CreateFlightActivity . KEY_VALUE_EXTRAS , extras ) ; } fragment . startActivity ( intent ) ; }
display the authenticated pilot ' s profile
