forked from upstream-mirrors/OpenTracks
Bug fix, at the end of a track, only update the time if not paused
This commit is contained in:
@@ -768,10 +768,10 @@ public class TrackRecordingService extends Service {
|
|||||||
// If not paused, add the last location
|
// If not paused, add the last location
|
||||||
if (!paused) {
|
if (!paused) {
|
||||||
insertLocation(track, lastLocation, getLastValidTrackPointInCurrentSegment(trackId));
|
insertLocation(track, lastLocation, getLastValidTrackPointInCurrentSegment(trackId));
|
||||||
}
|
|
||||||
|
// Update the recording track time
|
||||||
// Update the recording track time
|
updateRecordingTrack(track, myTracksProviderUtils.getLastTrackPointId(trackId), false);
|
||||||
updateRecordingTrack(track, myTracksProviderUtils.getLastTrackPointId(trackId), false);
|
}
|
||||||
|
|
||||||
if (track.getCategory().equals(PreferencesUtils.DEFAULT_ACTIVITY_DEFAULT)) {
|
if (track.getCategory().equals(PreferencesUtils.DEFAULT_ACTIVITY_DEFAULT)) {
|
||||||
int activityRecognitionType = PreferencesUtils.getInt(this,
|
int activityRecognitionType = PreferencesUtils.getInt(this,
|
||||||
|
|||||||
Reference in New Issue
Block a user