Fix #3215
This commit is contained in:
parent
a3fe3eb7c5
commit
7357db73d8
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ public class OsmEditingPlugin extends OsmandPlugin {
|
||||||
if (selectedObj instanceof Amenity) {
|
if (selectedObj instanceof Amenity) {
|
||||||
Amenity amenity = (Amenity) selectedObj;
|
Amenity amenity = (Amenity) selectedObj;
|
||||||
final PoiType poiType = amenity.getType().getPoiTypeByKeyName(amenity.getSubType());
|
final PoiType poiType = amenity.getType().getPoiTypeByKeyName(amenity.getSubType());
|
||||||
isEditable = !amenity.getType().isWiki() && !poiType.isNotEditableOsm();
|
isEditable = !amenity.getType().isWiki() && poiType !=null && !poiType.isNotEditableOsm();
|
||||||
}
|
}
|
||||||
if (isEditable) {
|
if (isEditable) {
|
||||||
adapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.poi_context_menu_modify, mapActivity)
|
adapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.poi_context_menu_modify, mapActivity)
|
||||||
|
|
Loading…
Reference in a new issue