Disabled auto-pause when gps signal is lost

This commit is contained in:
jannis 2020-01-07 16:35:40 +01:00
parent dfdb2dbac3
commit f0684647c3

View File

@ -119,7 +119,7 @@ public class WorkoutRecorder implements LocationListener.LocationChangeListener
workoutRecorderListener.onAutoStop();
}
}else if(timeDiff > PAUSE_TIME){
if(state == RecordingState.RUNNING){
if (state == RecordingState.RUNNING && gpsState != GpsState.SIGNAL_LOST) {
pause();
}
}else{
@ -259,10 +259,7 @@ public class WorkoutRecorder implements LocationListener.LocationChangeListener
samples.clear();
}
/**
* Returns the distance in meters
*/
public int getDistance(){
public int getDistanceInMeters() {
return (int)distance;
}