forked from upstream-mirrors/OpenTracks
TrackRecordingService doesn't change the track's name when recording ends. Fixes #209.
This commit is contained in:
@@ -461,12 +461,6 @@ public class TrackRecordingService extends Service {
|
||||
// Update the recording track time
|
||||
updateTrackTotalTime(track);
|
||||
}
|
||||
|
||||
String trackName = TrackNameUtils.getTrackName(this, trackId, track.getTrackStatistics().getStartTime_ms());
|
||||
if (trackName != null && !trackName.equals(track.getName())) {
|
||||
track.setName(trackName);
|
||||
contentProviderUtils.updateTrack(track);
|
||||
}
|
||||
}
|
||||
endRecording(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user