Terminate tracker update thread on destroy.

This commit is contained in:
Bartlomiej Niechwiej
2010-10-22 10:14:36 -07:00
parent a3793aa92b
commit 9905def352
@@ -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.
*/