Merge pull request #7113 from osmandapp/Fix_7079

Fix #7079
This commit is contained in:
Alexey 2019-06-27 16:42:20 +03:00 committed by GitHub
commit e027a31176
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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";

View file

@ -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;
@ -489,6 +492,8 @@ public class AmenityMenuBuilder extends MenuBuilder {
iconId = R.drawable.ic_action_poi_brand;
} else if (key.equals("internet_access_fee_yes")) {
iconId = R.drawable.ic_action_internet_access_fee;
} else if (key.equals("instagram")) {
iconId = R.drawable.ic_action_social_instagram;
} else {
iconId = R.drawable.ic_action_info_dark;
}