forked from upstream-mirrors/OpenTracks
Minor fixes.
This commit is contained in:
+1
-1
@@ -4,9 +4,9 @@
|
|||||||
<classpathentry kind="lib" path="libs/googleloginclient-helper.jar"/>
|
<classpathentry kind="lib" path="libs/googleloginclient-helper.jar"/>
|
||||||
<classpathentry kind="lib" path="libs/google-common.jar"/>
|
<classpathentry kind="lib" path="libs/google-common.jar"/>
|
||||||
<classpathentry kind="lib" path="libs/accounts.jar"/>
|
<classpathentry kind="lib" path="libs/accounts.jar"/>
|
||||||
<classpathentry kind="src" path="MyTracksLib_src"/>
|
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="gen"/>
|
<classpathentry kind="src" path="gen"/>
|
||||||
|
<classpathentry kind="src" path="MyTracksLib_src"/>
|
||||||
<classpathentry exported="true" kind="lib" path="/MyTracksLib/libs/protobuf-java-2.3.0-lite.jar"/>
|
<classpathentry exported="true" kind="lib" path="/MyTracksLib/libs/protobuf-java-2.3.0-lite.jar"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|||||||
@@ -871,7 +871,7 @@ public class TrackRecordingService extends Service implements LocationListener {
|
|||||||
wpt.setType(Waypoint.TYPE_WAYPOINT);
|
wpt.setType(Waypoint.TYPE_WAYPOINT);
|
||||||
break;
|
break;
|
||||||
case STATISTICS:
|
case STATISTICS:
|
||||||
insertStatisticsMarker(wpt);
|
buildStatisticsMarker(wpt);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!isRecording()) {
|
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
|
* Build a statistics marker.
|
||||||
* last segment up to this 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
|
* @return the unique id of the inserted marker
|
||||||
*/
|
*/
|
||||||
private void insertStatisticsMarker(Waypoint waypoint) {
|
private void buildStatisticsMarker(Waypoint waypoint) {
|
||||||
if (!isRecording()) {
|
if (!isRecording()) {
|
||||||
throw new IllegalStateException(
|
throw new IllegalStateException(
|
||||||
"Unable to insert statistics marker while not recording!");
|
"Unable to insert statistics marker while not recording!");
|
||||||
@@ -922,10 +922,10 @@ public class TrackRecordingService extends Service implements LocationListener {
|
|||||||
|
|
||||||
waypoint.setStartId(providerUtils.getLastLocationId(recordingTrackId));
|
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);
|
waypointStatsBuilder = new TripStatisticsBuilder(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
private ServiceBinder binder = new ServiceBinder(this);
|
private ServiceBinder binder = new ServiceBinder(this);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user