forked from upstream-mirrors/OpenTracks
Bugfix: GpsStatusManager needs to stop the timer.
This may lead to crashes when track recording is finished.
This commit is contained in:
@@ -61,6 +61,7 @@ class GpsStatusManager {
|
||||
* The client that uses GpsStatus has to call this method to stop the Runnable if needed.
|
||||
*/
|
||||
public void stop() {
|
||||
stopTimer();
|
||||
client.onGpsStatusChanged(GpsStatusValue.GPS_NONE);
|
||||
client = null;
|
||||
handler = null;
|
||||
|
||||
Reference in New Issue
Block a user