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();
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user