Merge pull request #884 from Bars107/sherpafy

Changed map layers button to POI
This commit is contained in:
vshcherb 2014-09-24 15:11:23 +02:00
commit 9d7693cde2

View file

@ -552,8 +552,7 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
@Override @Override
public void prepareOptionsMenu(final MapActivity mapActivity, ContextMenuAdapter adapter) { public void prepareOptionsMenu(final MapActivity mapActivity, ContextMenuAdapter adapter) {
filter(adapter, R.string.menu_layers, filter(adapter,R.string.pause_navigation, R.string.continue_navigation,
R.string.pause_navigation, R.string.continue_navigation,
R.string.cancel_navigation, R.string.cancel_route, R.string.clear_destination, R.string.cancel_navigation, R.string.cancel_route, R.string.clear_destination,
R.string.target_points, R.string.target_points,
R.string.get_directions, R.string.get_directions,
@ -593,6 +592,15 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
} }
} }
}).reg(); }).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();
} }