Merge pull request #6055 from osmandapp/js_voice_routing

Fixed #5998
This commit is contained in:
vshcherb 2018-09-17 12:08:26 +02:00 committed by GitHub
commit 2989f07775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,10 +119,10 @@ public class RenderedObjectMenuController extends MenuController {
(renderedObject.getId() % 2 == MapObject.AMENITY_ID_RIGHT_SHIFT (renderedObject.getId() % 2 == MapObject.AMENITY_ID_RIGHT_SHIFT
|| (renderedObject.getId() >> MapObject.NON_AMENITY_ID_RIGHT_SHIFT) < Integer.MAX_VALUE)) { || (renderedObject.getId() >> MapObject.NON_AMENITY_ID_RIGHT_SHIFT) < Integer.MAX_VALUE)) {
String link; String link;
if ((renderedObject.getId() >> 6) % 2 == MapObject.WAY_MODULO_REMAINDER) { if ((renderedObject.getId()) % 2 == MapObject.WAY_MODULO_REMAINDER) {
link = "https://www.openstreetmap.org/node/";
} else {
link = "https://www.openstreetmap.org/way/"; link = "https://www.openstreetmap.org/way/";
} else {
link = "https://www.openstreetmap.org/node/";
} }
addPlainMenuItem(R.drawable.ic_action_info_dark, null, link + (renderedObject.getId() >> MapObject.NON_AMENITY_ID_RIGHT_SHIFT), true, true, null); addPlainMenuItem(R.drawable.ic_action_info_dark, null, link + (renderedObject.getId() >> MapObject.NON_AMENITY_ID_RIGHT_SHIFT), true, true, null);
} }