fix list position
This commit is contained in:
parent
3f0c508f2b
commit
f5e5e95f39
1 changed files with 3 additions and 7 deletions
|
@ -252,9 +252,6 @@ public class MapActivityLayers {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue