From 8ebd6e198a039055fe1896ddcc0938eae699a278 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 11 Jan 2015 10:03:12 +0100 Subject: [PATCH] try for adapter --- OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java index 3c4101e778..3a7670a9b7 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java @@ -109,7 +109,7 @@ public class ConfigureMapMenu { ma.getMapLayers().showGPXFileLayer(getAlreadySelectedGpx(), ma.getMapView()); //sync tick mark cm.item(R.string.layer_gpx_layer).selected(ma.getMyApplication().getSelectedGpxHelper().isShowingAnyGpxFiles() ? 1 : 0).reg(); - cm.notifyDataSetChanged(); + adapter.notifyDataSetChanged(); return false; } else { return super.onRowItemClick(adapter, view, itemId, pos); @@ -136,7 +136,7 @@ public class ConfigureMapMenu { } //sync tick mark cm.item(R.string.layer_gpx_layer).selected(ma.getMyApplication().getSelectedGpxHelper().isShowingAnyGpxFiles() ? 1 : 0).reg(); - cm.notifyDataSetChanged(); + adapter.notifyDataSetChanged(); } else if (itemId == R.string.layer_transport_route) { ma.getMapLayers().getTransportInfoLayer().setVisible(isChecked); }