Fix SnapTrack showing
This commit is contained in:
parent
df184fe14d
commit
5801536aa0
1 changed files with 5 additions and 6 deletions
|
@ -543,17 +543,17 @@ public class MeasurementToolFragment extends BaseOsmAndFragment implements Route
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onParametersChanged(ApplicationMode mode, int distanceThreshold) {
|
public void onChangeGpxApproxDistanceThreshold(ApplicationMode mode, int distanceThreshold) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void applyButtonOnClick(ApplicationMode mode, int distanceThreshold) {
|
public void onApplyGpxApproximation(ApplicationMode mode, int distanceThreshold) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void cancelButtonOnClick() {
|
public void onCancelGpxApproximation() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -614,7 +614,7 @@ public class MeasurementToolFragment extends BaseOsmAndFragment implements Route
|
||||||
toolBarController.setTitle(getString(R.string.route_between_points));
|
toolBarController.setTitle(getString(R.string.route_between_points));
|
||||||
mapActivity.refreshMap();
|
mapActivity.refreshMap();
|
||||||
|
|
||||||
if (editingCtx.hasRoutePoints()) {
|
if (editingCtx.isNewData() || editingCtx.hasRoutePoints()) {
|
||||||
RouteBetweenPointsBottomSheetDialogFragment.showInstance(mapActivity.getSupportFragmentManager(),
|
RouteBetweenPointsBottomSheetDialogFragment.showInstance(mapActivity.getSupportFragmentManager(),
|
||||||
this, editingCtx.getCalculationType(),
|
this, editingCtx.getCalculationType(),
|
||||||
editingCtx.getSnapToRoadAppMode());
|
editingCtx.getSnapToRoadAppMode());
|
||||||
|
@ -636,8 +636,7 @@ public class MeasurementToolFragment extends BaseOsmAndFragment implements Route
|
||||||
case SnapTrackWarningBottomSheet.CONTINUE_REQUEST_CODE:
|
case SnapTrackWarningBottomSheet.CONTINUE_REQUEST_CODE:
|
||||||
MapActivity mapActivity = getMapActivity();
|
MapActivity mapActivity = getMapActivity();
|
||||||
if (mapActivity != null) {
|
if (mapActivity != null) {
|
||||||
GpxApproximationFragment.showInstance(mapActivity.getSupportFragmentManager(),
|
GpxApproximationFragment.showInstance(mapActivity.getSupportFragmentManager(), this);
|
||||||
MeasurementToolFragment.this);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue