forked from upstream-mirrors/OpenTracks
In TrackRecordingService, fix the code on detecting if a location
is already inserted in the database. In TripStatisticsUpdater, improve total distance accuracy by taking into account the last point in a segment.
This commit is contained in:
-11
@@ -746,17 +746,6 @@ public class MyTracksProviderUtilsImplTest extends AndroidTestCase {
|
||||
assertEquals(11, providerUtils.getTrackPointCursor(trackId, 0, 1000, false).getCount());
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the method {@link MyTracksProviderUtilsImpl#getLastTrackPoint(long)}.
|
||||
*/
|
||||
public void testGetLastTrackPoint() {
|
||||
// Insert track, point at first.
|
||||
long trackId = System.currentTimeMillis();
|
||||
Track track = getTrack(trackId, 10);
|
||||
insertTrackWithLocations(track);
|
||||
checkLocation(9, providerUtils.getLastTrackPoint(trackId));
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the method {@link MyTracksProviderUtilsImpl#getLastTrackPointId(long)}.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user