Skip to content

Commit

Permalink
reduce further the number of tracked variables necessary for defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
grobolom committed Jan 24, 2025
1 parent 4214c28 commit 862cfa8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/de/dennisguse/opentracks/chart/ChartView.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ public class ChartView extends View {
private boolean chartByDistance = false;
private UnitSystem unitSystem = UnitSystem.defaultUnitSystem();
private boolean reportSpeed = true;
private boolean showElevation = true;
private boolean showPaceOrSpeed = true;
private boolean showHeartRate = true;
private boolean showPointer = false;

private final GestureDetectorCompat detectorScrollFlingTab = new GestureDetectorCompat(getContext(), new GestureDetector.SimpleOnGestureListener() {
Expand Down Expand Up @@ -362,8 +360,8 @@ protected boolean drawIfChartPointHasNoData() {
}

// Defaults for our chart series.
heartRateSeries.setEnabled(showHeartRate);
elevationSeries.setEnabled(showElevation);
heartRateSeries.setEnabled(true);
elevationSeries.setEnabled(true);
}

@Override
Expand Down Expand Up @@ -421,7 +419,6 @@ public boolean applyReportSpeed() {
}

void setShowElevation(boolean value) {
showElevation = value;
elevationSeries.setEnabled(value);
}
void setShowPaceOrSpeed(boolean value) {
Expand Down

0 comments on commit 862cfa8

Please sign in to comment.