fix search

This commit is contained in:
sonora 2015-04-14 22:00:12 +02:00
parent 68b371f80f
commit 50aabf397f

View file

@ -268,6 +268,9 @@ public class MapActivityLayers {
builder.setAdapter(listAdapter, new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int which) {
if (which == 0) {
which = list.size() + 1
}
PoiLegacyFilter pf = list.get(which - 1);
String filterId = pf.getFilterId();
if(filterId.equals(PoiLegacyFilter.CUSTOM_FILTER_ID)){