mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user