Fix poi map cancel issue

This commit is contained in:
Victor Shcherb 2015-04-07 00:00:05 +02:00
parent bffedb266e
commit 8ebc11039a

View file

@ -93,6 +93,8 @@ public class ConfigureMapMenu {
public boolean onContextMenuClick(final ArrayAdapter<?> adapter, int itemId, final int pos, boolean isChecked) {
final OsmandSettings settings = ma.getMyApplication().getSettings();
if (itemId == R.string.layer_poi) {
settings.setPoiFilterForMap(null);
ma.getMapLayers().getPoiMapLayer().setFilter(null);
settings.SHOW_POI_OVER_MAP.set(isChecked);
if (isChecked) {
selectPOILayer(settings);