forked from upstream-mirrors/OpenTracks
@@ -120,11 +120,12 @@ public class TrackRecordingService extends Service implements TrackPointCreator.
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
|
trackPointCreator.stop();
|
||||||
|
trackPointCreator = null;
|
||||||
|
|
||||||
handler.removeCallbacksAndMessages(null); //Some tests do not finish the recording completely
|
handler.removeCallbacksAndMessages(null); //Some tests do not finish the recording completely
|
||||||
handler = null;
|
handler = null;
|
||||||
|
|
||||||
trackPointCreator.stop();
|
|
||||||
trackPointCreator = null;
|
|
||||||
trackRecordingManager.stop();
|
trackRecordingManager.stop();
|
||||||
trackRecordingManager = null;
|
trackRecordingManager = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user