fix list position

This commit is contained in:
sonora 2015-04-14 21:27:13 +02:00
parent 3f0c508f2b
commit f5e5e95f39

View file

@ -250,11 +250,8 @@ public class MapActivityLayers {
return GpxUiHelper.selectGPXFile(files, activity, true, true, callbackWithObject);
}
}
public AlertDialog selectPOIFilterLayer(final OsmandMapTileView mapView, final PoiLegacyFilter[] selected){
OsmandApplication app = (OsmandApplication) getApplication();
final PoiFiltersHelper poiFilters = app.getPoiFilters();
@ -269,10 +266,9 @@ public class MapActivityLayers {
Builder builder = new AlertDialog.Builder(activity);
ListAdapter listAdapter = adapter.createListAdapter(activity, app.getSettings().isLightContent());
builder.setAdapter(listAdapter, new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int which) {
PoiLegacyFilter pf = list.get(which);
PoiLegacyFilter pf = list.get(which - 1);
String filterId = pf.getFilterId();
if(filterId.equals(PoiLegacyFilter.CUSTOM_FILTER_ID)){
Intent search = new Intent(activity, SearchActivity.class);