Skip to content

Commit

Permalink
dropping pin without edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jclark118 committed Nov 29, 2023
1 parent 2a4bc3c commit 94f7b01
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3352,6 +3352,15 @@ public void onMapLongClick(@NonNull LatLng point) {
}
updateEditState(true);
}
} 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;
// editPoints.put(marker.getId(), marker);
}
}
}
Expand Down

0 comments on commit 94f7b01

Please sign in to comment.