mirror of
https://github.com/russok/FitoTrack.git
synced 2025-10-29 00:32:11 -07:00
Fix Crash
This commit is contained in:
parent
e28a2ad9c2
commit
fa0a9ea095
@ -74,6 +74,8 @@ public class ListWorkoutsActivity extends Activity implements WorkoutAdapter.Wor
|
||||
findViewById(R.id.workoutListRecordHiking) .setOnClickListener(v -> startRecording(Workout.WORKOUT_TYPE_HIKING));
|
||||
findViewById(R.id.workoutListRecordCycling).setOnClickListener(v -> startRecording(Workout.WORKOUT_TYPE_CYCLING));
|
||||
|
||||
loadData();
|
||||
|
||||
checkFirstStart();
|
||||
|
||||
adapter= new WorkoutAdapter(workouts, this);
|
||||
|
||||
@ -356,11 +356,13 @@ public class RecordWorkoutActivity extends FitoTrackActivity implements Location
|
||||
|
||||
@Override
|
||||
public void onGPSStateChanged(WorkoutRecorder.GpsState oldState, WorkoutRecorder.GpsState state) {
|
||||
mHandler.post(() -> gpsStatusView.setTextColor(state.color));
|
||||
mHandler.post(() -> {
|
||||
gpsStatusView.setTextColor(state.color);
|
||||
if(!gpsFound && (state != WorkoutRecorder.GpsState.SIGNAL_LOST)){
|
||||
gpsFound= true;
|
||||
hideWaitOverlay();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static class InfoViewHolder{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user