This commit is contained in:
Victor Shcherb 2017-04-04 20:27:51 +02:00
parent a92550e1ca
commit e016264d2e
3 changed files with 5 additions and 3 deletions

View file

@ -3106,7 +3106,7 @@ Tidligere destination bliver sidste mellemliggende punkt.</string>
<string name="edit_name">Rediger navn</string>
<string name="save_poi_too_many_uppercase">Navnet indeholder for mange store bogstaver. Fortsæt?</string>
<string name="route_is_too_long_v2">Ruten kan være for lang til at beregnes. Tilføj mellemliggende destinationer, hvis ruten ikke er beregnet efter 10 minutter.</string>
<string name="display_zoom_level">Vise zoomniveau: %1$ s</string>
<string name="display_zoom_level">Vise zoomniveau: %1$s</string>
<string name="srtm_color_scheme">Farveskema</string>
<string name="show_from_zoom_level">Vis fra zoomniveau</string>
<string name="routing_attr_allow_private_name">Tillad privat adgang</string>

View file

@ -472,7 +472,8 @@ public class AmenityMenuBuilder extends MenuBuilder {
boolean osmEditingEnabled = OsmandPlugin.getEnabledPlugin(OsmEditingPlugin.class) != null;
if (osmEditingEnabled && amenity.getId() != null
&& amenity.getId() > 0 && amenity.getId() < 1000000000) {
&& amenity.getId() > 0 &&
(amenity.getId() % 2 == 1 || (amenity.getId() >> 1) < 10*1000*1000*1000)) {
String link;
if (amenity.getId() % 2 == 0) {
link = "http://www.openstreetmap.org/node/";

View file

@ -85,7 +85,8 @@ public class RenderedObjectMenuController extends MenuController {
public void addPlainMenuItems(String typeStr, PointDescription pointDescription, final LatLon latLon) {
boolean osmEditingEnabled = OsmandPlugin.getEnabledPlugin(OsmEditingPlugin.class) != null;
if (osmEditingEnabled && renderedObject.getId() != null
&& renderedObject.getId() > 0 && renderedObject.getId() < 1000000000) {
&& renderedObject.getId() > 0 &&
(renderedObject.getId() % 2 == 0 || (renderedObject.getId() >> 7) < 10*1000*1000*1000)) {
String link;
if ((renderedObject.getId() >> 6) % 2 != 0) {
link = "http://www.openstreetmap.org/node/";