small fixes;

This commit is contained in:
Skalii 2021-03-22 21:52:10 +02:00
parent 1d66be6f4b
commit 6daf750591

View file

@ -225,6 +225,10 @@ public class TripRecordingBottomFragment extends MenuBottomSheetDialogFragment i
super.onResume(); super.onResume();
blockStatisticsBuilder.runUpdatingStatBlocksIfNeeded(); blockStatisticsBuilder.runUpdatingStatBlocksIfNeeded();
runUpdatingGPS(); runUpdatingGPS();
MapActivity mapActivity = getMapActivity();
if (mapActivity != null) {
mapActivity.getMapLayers().getGpxLayer().setTrackChartPoints(trackChartPoints);
}
} }
@Override @Override
@ -235,7 +239,8 @@ public class TripRecordingBottomFragment extends MenuBottomSheetDialogFragment i
MapActivity mapActivity = getMapActivity(); MapActivity mapActivity = getMapActivity();
if (mapActivity != null) { if (mapActivity != null) {
mapActivity.getMapLayers().getGpxLayer().setTrackChartPoints(null); mapActivity.getMapLayers().getGpxLayer().setTrackChartPoints(null);
}} }
}
public void show() { public void show() {
Dialog dialog = getDialog(); Dialog dialog = getDialog();