mirror of
https://github.com/russok/FitoTrack.git
synced 2025-10-29 08:42:12 -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.workoutListRecordHiking) .setOnClickListener(v -> startRecording(Workout.WORKOUT_TYPE_HIKING));
|
||||||
findViewById(R.id.workoutListRecordCycling).setOnClickListener(v -> startRecording(Workout.WORKOUT_TYPE_CYCLING));
|
findViewById(R.id.workoutListRecordCycling).setOnClickListener(v -> startRecording(Workout.WORKOUT_TYPE_CYCLING));
|
||||||
|
|
||||||
|
loadData();
|
||||||
|
|
||||||
checkFirstStart();
|
checkFirstStart();
|
||||||
|
|
||||||
adapter= new WorkoutAdapter(workouts, this);
|
adapter= new WorkoutAdapter(workouts, this);
|
||||||
|
|||||||
@ -356,11 +356,13 @@ public class RecordWorkoutActivity extends FitoTrackActivity implements Location
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onGPSStateChanged(WorkoutRecorder.GpsState oldState, WorkoutRecorder.GpsState state) {
|
public void onGPSStateChanged(WorkoutRecorder.GpsState oldState, WorkoutRecorder.GpsState state) {
|
||||||
mHandler.post(() -> gpsStatusView.setTextColor(state.color));
|
mHandler.post(() -> {
|
||||||
if(!gpsFound && (state != WorkoutRecorder.GpsState.SIGNAL_LOST)){
|
gpsStatusView.setTextColor(state.color);
|
||||||
gpsFound= true;
|
if(!gpsFound && (state != WorkoutRecorder.GpsState.SIGNAL_LOST)){
|
||||||
hideWaitOverlay();
|
gpsFound= true;
|
||||||
}
|
hideWaitOverlay();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class InfoViewHolder{
|
public static class InfoViewHolder{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user