From 411f8d73ff131802dac3b436dd8bac75f377076d Mon Sep 17 00:00:00 2001 From: Chumva Date: Thu, 27 Jun 2019 11:48:12 +0300 Subject: [PATCH] Fix #7079 --- OsmAnd-java/src/main/java/net/osmand/data/Amenity.java | 1 + .../plus/mapcontextmenu/builders/AmenityMenuBuilder.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/OsmAnd-java/src/main/java/net/osmand/data/Amenity.java b/OsmAnd-java/src/main/java/net/osmand/data/Amenity.java index 32d80a793b..42309bd5a2 100644 --- a/OsmAnd-java/src/main/java/net/osmand/data/Amenity.java +++ b/OsmAnd-java/src/main/java/net/osmand/data/Amenity.java @@ -28,6 +28,7 @@ public class Amenity extends MapObject { public static final String WEBSITE = "website"; public static final String PHONE = "phone"; + public static final String MOBILE = "mobile"; public static final String DESCRIPTION = "description"; public static final String ROUTE = "route"; public static final String OPENING_HOURS = "opening_hours"; diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java index 25361fe1af..664f2127d1 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java @@ -459,6 +459,9 @@ public class AmenityMenuBuilder extends MenuBuilder { } else if (Amenity.PHONE.equals(key)) { iconId = R.drawable.ic_action_call_dark; isPhoneNumber = true; + } else if (Amenity.MOBILE.equals(key)) { + iconId = R.drawable.ic_action_phone; + isPhoneNumber = true; } else if (Amenity.WEBSITE.equals(key)) { iconId = R.drawable.ic_world_globe_dark; isUrl = true;