From e4da9fee6357a6f9cd878abc0999f1edb1cf5db4 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 4 Apr 2017 20:29:33 +0200 Subject: [PATCH] Fix tests --- .../osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java index 307f028a88..a308f81236 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java @@ -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/";