Added new option in Preferred rate setting: By Default.

With By Default option it will use pace or speed depending on activity type.
Fixes #151.
This commit is contained in:
Román
2020-03-14 12:35:28 +01:00
parent 240d8f6b6c
commit 83b5ebb02c
9 changed files with 55 additions and 6 deletions
@@ -510,7 +510,7 @@ public class StatsFragment extends Fragment implements TrackDataListener {
String trackIconValue = TrackIconUtils.getIconValue(getContext(), category);
boolean metricUnits = PreferencesUtils.isMetricUnits(getContext());
boolean reportSpeed = PreferencesUtils.isReportSpeed(getContext());
boolean reportSpeed = PreferencesUtils.isReportSpeed(getContext(), category);
boolean isRecording = isSelectedTrackRecording();
// Set total distance
@@ -603,7 +603,7 @@ public class StatsFragment extends Fragment implements TrackDataListener {
private void setLocationValues() {
boolean metricUnits = PreferencesUtils.isMetricUnits(getContext());
boolean reportSpeed = PreferencesUtils.isReportSpeed(getContext());
boolean reportSpeed = PreferencesUtils.isReportSpeed(getContext(), category);
boolean isRecording = isSelectedTrackRecording();
// Set speed/pace