Fix tests

This commit is contained in:
Victor Shcherb 2017-04-04 20:29:33 +02:00
parent e016264d2e
commit e4da9fee63

View file

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