try for adapter

This commit is contained in:
sonora 2015-01-11 10:03:12 +01:00
parent dcd9cb9516
commit 8ebd6e198a

View file

@ -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);
}