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