From 5047826a74d8b8b18b6852503bebe8f285558ae2 Mon Sep 17 00:00:00 2001 From: Sandor Dornbush Date: Sat, 11 Dec 2010 22:06:55 -0800 Subject: [PATCH] Minor fixes. --- MyTracks/.classpath | 2 +- .../mytracks/services/TrackRecordingService.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/MyTracks/.classpath b/MyTracks/.classpath index ef3b07d1d..3d5ddb422 100644 --- a/MyTracks/.classpath +++ b/MyTracks/.classpath @@ -4,9 +4,9 @@ - + diff --git a/MyTracks/src/com/google/android/apps/mytracks/services/TrackRecordingService.java b/MyTracks/src/com/google/android/apps/mytracks/services/TrackRecordingService.java index 09dbb7279..e6567e10b 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/services/TrackRecordingService.java +++ b/MyTracks/src/com/google/android/apps/mytracks/services/TrackRecordingService.java @@ -871,7 +871,7 @@ public class TrackRecordingService extends Service implements LocationListener { wpt.setType(Waypoint.TYPE_WAYPOINT); break; case STATISTICS: - insertStatisticsMarker(wpt); + buildStatisticsMarker(wpt); break; } if (!isRecording()) { @@ -891,13 +891,13 @@ public class TrackRecordingService extends Service implements LocationListener { } /** - * Inserts a statistics marker. A statistics marker holds the stats for the - * last segment up to this marker. + * Build a statistics marker. + * A statistics marker holds the stats for the* last segment up to this marker. * - * @param location the location where to insert + * @param Waypoint The waypoint which will be populated with stats data. * @return the unique id of the inserted marker */ - private void insertStatisticsMarker(Waypoint waypoint) { + private void buildStatisticsMarker(Waypoint waypoint) { if (!isRecording()) { throw new IllegalStateException( "Unable to insert statistics marker while not recording!"); @@ -922,10 +922,10 @@ public class TrackRecordingService extends Service implements LocationListener { waypoint.setStartId(providerUtils.getLastLocationId(recordingTrackId)); - // Create a new stats keeper for the next marker + // Create a new stats keeper for the next marker. waypointStatsBuilder = new TripStatisticsBuilder(time); - } - + } + private ServiceBinder binder = new ServiceBinder(this); /**