private void prepareTrackForDisplay(Track track,Map<String,Object> resultMap){
  TripStatistics tripStatitics=track.getTripStatistics();
  String icon=track.getIcon();
  String category=icon != null && !icon.equals("") ? null : track.getCategory();
  resultMap.put(IS_RECORDING_FIELD,track.getId() == recordingTrackId);
  resultMap.put(IS_PAUSED_FIELD,recordingTrackPaused);
  resultMap.put(ICON_ID_FIELD,TrackIconUtils.getIconDrawable(icon));
  resultMap.put(ICON_CONTENT_DESCRIPTION_ID_FIELD,R.string.image_track);
  resultMap.put(NAME_FIELD,track.getName());
  resultMap.put(SHARED_OWNER_FIELD,track.getSharedOwner());
  resultMap.put(TOTAL_TIME_FIELD,StringUtils.formatElapsedTime(tripStatitics.getTotalTime()));
  resultMap.put(TOTAL_DISTANCE_FIELD,StringUtils.formatDistance(this,tripStatitics.getTotalDistance(),metricUnits));
  resultMap.put(MARKER_COUNT_FIELD,myTracksProviderUtils.getWaypointCount(track.getId()));
  resultMap.put(START_TIME_FIELD,tripStatitics.getStartTime());
  resultMap.put(CATEGORY_FIELD,category);
  resultMap.put(DESCRIPTION_FIELD,track.getDescription());
  resultMap.put(PHOTO_URL_FIELD,null);
  resultMap.put(TRACK_ID_FIELD,track.getId());
  resultMap.put(MARKER_ID_FIELD,null);
}

private void prepareTrackForDisplay ( Track track , Map < String , Object > resultMap ) { TripStatistics tripStatitics = track . getTripStatistics ( ) ; String icon = track . getIcon ( ) ; String category = icon != null && ! icon . equals ( "" ) ? null : track . getCategory ( ) ; resultMap . put ( IS_RECORDING_FIELD , track . getId ( ) == recordingTrackId ) ; resultMap . put ( IS_PAUSED_FIELD , recordingTrackPaused ) ; resultMap . put ( ICON_ID_FIELD , TrackIconUtils . getIconDrawable ( icon ) ) ; resultMap . put ( ICON_CONTENT_DESCRIPTION_ID_FIELD , R . string . image_track ) ; resultMap . put ( NAME_FIELD , track . getName ( ) ) ; resultMap . put ( SHARED_OWNER_FIELD , track . getSharedOwner ( ) ) ; resultMap . put ( TOTAL_TIME_FIELD , StringUtils . formatElapsedTime ( tripStatitics . getTotalTime ( ) ) ) ; resultMap . put ( TOTAL_DISTANCE_FIELD , StringUtils . formatDistance ( this , tripStatitics . getTotalDistance ( ) , metricUnits ) ) ; resultMap . put ( MARKER_COUNT_FIELD , myTracksProviderUtils . getWaypointCount ( track . getId ( ) ) ) ; resultMap . put ( START_TIME_FIELD , tripStatitics . getStartTime ( ) ) ; resultMap . put ( CATEGORY_FIELD , category ) ; resultMap . put ( DESCRIPTION_FIELD , track . getDescription ( ) ) ; resultMap . put ( PHOTO_URL_FIELD , null ) ; resultMap . put ( TRACK_ID_FIELD , track . getId ( ) ) ; resultMap . put ( MARKER_ID_FIELD , null ) ; }
prepares a track for display by filling in a result map .
