forked from upstream-mirrors/OpenTracks
Terminate tracker update thread on destroy.
This commit is contained in:
@@ -377,6 +377,16 @@ public class MyTracksMap extends MapActivity
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onDestroy() {
|
||||||
|
Log.d(MyTracksConstants.TAG, "MyTracksMap.onDestroy");
|
||||||
|
if (updateTrackThread != null) {
|
||||||
|
updateTrackThread.quit();
|
||||||
|
}
|
||||||
|
|
||||||
|
super.onDestroy();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether there's a track currently selected for display.
|
* Returns whether there's a track currently selected for display.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user