Skip to content

Commit

Permalink
disable pin drop when not in edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jclark118 committed Jan 3, 2024
1 parent b38132a commit 3e9542e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3364,12 +3364,12 @@ public void onMapLongClick(@NonNull LatLng point) {
}
} else {
// Drop a pin on user long press when not editing specific layer
vibrator.vibrate(VibrationEffect.createOneShot(getActivity().getResources()
.getInteger(R.integer.edit_features_add_long_click_vibrate_quick),
VibrationEffect.DEFAULT_AMPLITUDE));
editFeatureType = EditType.POINT;
Marker marker = addEditPoint(point);
editFeatureType = null;
// vibrator.vibrate(VibrationEffect.createOneShot(getActivity().getResources()
// .getInteger(R.integer.edit_features_add_long_click_vibrate_quick),
// VibrationEffect.DEFAULT_AMPLITUDE));
// editFeatureType = EditType.POINT;
// Marker marker = addEditPoint(point);
// editFeatureType = null;
// editPoints.put(marker.getId(), marker);
}
}
Expand Down

0 comments on commit 3e9542e

Please sign in to comment.