From 877d824a80e62232fa7ff64f025fa71459bd8c79 Mon Sep 17 00:00:00 2001 From: Denis Date: Wed, 24 Sep 2014 14:47:24 +0300 Subject: [PATCH] Changed map layers button to POI --- .../osmand/plus/sherpafy/SherpafyCustomization.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyCustomization.java b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyCustomization.java index 32b2837c2f..17d10b8b82 100644 --- a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyCustomization.java +++ b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyCustomization.java @@ -552,8 +552,7 @@ public class SherpafyCustomization extends OsmAndAppCustomization { @Override public void prepareOptionsMenu(final MapActivity mapActivity, ContextMenuAdapter adapter) { - filter(adapter, R.string.menu_layers, - R.string.pause_navigation, R.string.continue_navigation, + filter(adapter,R.string.pause_navigation, R.string.continue_navigation, R.string.cancel_navigation, R.string.cancel_route, R.string.clear_destination, R.string.target_points, R.string.get_directions, @@ -593,6 +592,15 @@ public class SherpafyCustomization extends OsmAndAppCustomization { } } }).reg(); + //poi + adapter.item(R.string.poi).icons( + R.drawable.ic_action_info_dark, R.drawable.ic_action_info_light).listen(new OnContextMenuClick() { + @Override + public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) { + mapActivity.getMapLayers().selectPOIFilterLayer(mapActivity.getMapView(), null); + } + }).reg(); + }