mirror of
https://github.com/russok/FitoTrack.git
synced 2025-10-29 00:32:11 -07:00
Disabled auto-pause when gps signal is lost
This commit is contained in:
parent
dfdb2dbac3
commit
f0684647c3
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user