private void updateRecordingTrack(Track track,long lastTrackPointId,boolean increaseNumberOfPoints){
  if (lastTrackPointId >= 0) {
    if (track.getStartId() < 0) {
      track.setStartId(lastTrackPointId);
    }
    track.setStopId(lastTrackPointId);
  }
  if (increaseNumberOfPoints) {
    track.setNumberOfPoints(track.getNumberOfPoints() + 1);
  }
  trackTripStatisticsUpdater.updateTime(System.currentTimeMillis());
  track.setTripStatistics(trackTripStatisticsUpdater.getTripStatistics());
  myTracksProviderUtils.updateTrack(track);
}

private void updateRecordingTrack ( Track track , long lastTrackPointId , boolean increaseNumberOfPoints ) { if ( lastTrackPointId >= 0 ) { if ( track . getStartId ( ) < 0 ) { track . setStartId ( lastTrackPointId ) ; } track . setStopId ( lastTrackPointId ) ; } if ( increaseNumberOfPoints ) { track . setNumberOfPoints ( track . getNumberOfPoints ( ) + 1 ) ; } trackTripStatisticsUpdater . updateTime ( System . currentTimeMillis ( ) ) ; track . setTripStatistics ( trackTripStatisticsUpdater . getTripStatistics ( ) ) ; myTracksProviderUtils . updateTrack ( track ) ; }
updates the recording track time . also updates the startid and the stopid . increase the number of points if it is a new and valid track point .
