Bug fix, at the end of a track, only update the time if not paused

This commit is contained in:
Jimmy Shih
2013-11-20 10:50:42 -08:00
parent 0aa3903a52
commit 79f974ee2b
@@ -768,10 +768,10 @@ public class TrackRecordingService extends Service {
// If not paused, add the last location
if (!paused) {
insertLocation(track, lastLocation, getLastValidTrackPointInCurrentSegment(trackId));
}
// Update the recording track time
updateRecordingTrack(track, myTracksProviderUtils.getLastTrackPointId(trackId), false);
// Update the recording track time
updateRecordingTrack(track, myTracksProviderUtils.getLastTrackPointId(trackId), false);
}
if (track.getCategory().equals(PreferencesUtils.DEFAULT_ACTIVITY_DEFAULT)) {
int activityRecognitionType = PreferencesUtils.getInt(this,