diff --git a/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java b/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java
index f1d4e44757..dbbdc468c5 100644
--- a/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java
+++ b/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java
@@ -48,8 +48,6 @@ public class MapPoiTypes {
if (name.equals("category")) { //$NON-NLS-1$
parentCategory = parser.getAttributeValue("","name");
poiParentCategory = parser.getAttributeValue("","poi_category");
- poiParentPrefix = parser.getAttributeValue("","poi_prefix");
- order = parser.getAttributeValue("","order");
}
}
}
@@ -69,4 +67,8 @@ public class MapPoiTypes {
throw new RuntimeException(e);
}
}
+
+ public static void main(String[] args) {
+ getDefault() ;
+ }
}
diff --git a/OsmAnd-java/src/net/osmand/osm/PoiCategory.java b/OsmAnd-java/src/net/osmand/osm/PoiCategory.java
new file mode 100644
index 0000000000..c3a7ab37fd
--- /dev/null
+++ b/OsmAnd-java/src/net/osmand/osm/PoiCategory.java
@@ -0,0 +1,21 @@
+package net.osmand.osm;
+
+public class PoiCategory {
+
+ private String name;
+ private String translationName;
+ private MapPoiTypes poiTypes;
+
+ public PoiCategory(MapPoiTypes poiTypes){
+ this.poiTypes = poiTypes;
+ }
+
+ public String getTranslationName() {
+ return translationName;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+}
diff --git a/OsmAnd-java/src/net/osmand/osm/PoiType.java b/OsmAnd-java/src/net/osmand/osm/PoiType.java
new file mode 100644
index 0000000000..ff8d1eb172
--- /dev/null
+++ b/OsmAnd-java/src/net/osmand/osm/PoiType.java
@@ -0,0 +1,23 @@
+package net.osmand.osm;
+
+public class PoiType {
+
+ private String name;
+ private String translationName;
+ private MapPoiTypes poiTypes;
+ private PoiCategory category;
+
+ public PoiType(MapPoiTypes poiTypes, PoiCategory category){
+ this.poiTypes = poiTypes;
+ this.category = category;
+ }
+
+ public String getTranslationName() {
+ return translationName;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+}
diff --git a/OsmAnd/AndroidManifest.xml b/OsmAnd/AndroidManifest.xml
index 40d3aa21de..93460e56de 100644
--- a/OsmAnd/AndroidManifest.xml
+++ b/OsmAnd/AndroidManifest.xml
@@ -5,7 +5,7 @@
android:versionCode="201"
package="net.osmand.plus">
-
+
diff --git a/OsmAnd/src/net/osmand/plus/OsmandApplication.java b/OsmAnd/src/net/osmand/plus/OsmandApplication.java
index a64db6d5c4..004059eb17 100644
--- a/OsmAnd/src/net/osmand/plus/OsmandApplication.java
+++ b/OsmAnd/src/net/osmand/plus/OsmandApplication.java
@@ -30,6 +30,7 @@ import net.osmand.plus.download.DownloadActivity;
import net.osmand.plus.helpers.AvoidSpecificRoads;
import net.osmand.plus.helpers.WaypointHelper;
import net.osmand.plus.monitoring.LiveMonitoringHelper;
+import net.osmand.plus.poi.PoiFiltersHelper;
import net.osmand.plus.render.NativeOsmandLibrary;
import net.osmand.plus.render.RendererRegistry;
import net.osmand.plus.resources.ResourceManager;
diff --git a/OsmAnd/src/net/osmand/plus/activities/EditPOIFilterActivity.java b/OsmAnd/src/net/osmand/plus/activities/EditPOIFilterActivity.java
index 5e57660314..511ea7d9c0 100644
--- a/OsmAnd/src/net/osmand/plus/activities/EditPOIFilterActivity.java
+++ b/OsmAnd/src/net/osmand/plus/activities/EditPOIFilterActivity.java
@@ -20,12 +20,12 @@ import net.osmand.data.LatLon;
import net.osmand.osm.MapRenderingTypes;
import net.osmand.plus.OsmAndFormatter;
import net.osmand.plus.OsmandApplication;
-import net.osmand.plus.PoiFilter;
-import net.osmand.plus.PoiFiltersHelper;
import net.osmand.plus.R;
import net.osmand.plus.SpecialPhrases;
import net.osmand.plus.activities.search.SearchActivity;
import net.osmand.plus.activities.search.SearchPOIActivity;
+import net.osmand.plus.poi.PoiLegacyFilter;
+import net.osmand.plus.poi.PoiFiltersHelper;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
@@ -39,7 +39,7 @@ import android.widget.LinearLayout.LayoutParams;
*/
public class EditPOIFilterActivity extends OsmandListActivity {
public static final String AMENITY_FILTER = "net.osmand.amenity_filter"; //$NON-NLS-1$
- private PoiFilter filter;
+ private PoiLegacyFilter filter;
private PoiFiltersHelper helper;
public static final String SEARCH_LAT = SearchActivity.SEARCH_LAT; //$NON-NLS-1$
public static final String SEARCH_LON = SearchActivity.SEARCH_LON; //$NON-NLS-1$
@@ -153,7 +153,7 @@ public class EditPOIFilterActivity extends OsmandListActivity {
builder.setPositiveButton(R.string.default_buttons_yes, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
- PoiFilter nFilter = new PoiFilter(editText.getText().toString(), null, filter.getAcceptedTypes(), (OsmandApplication) getApplication());
+ PoiLegacyFilter nFilter = new PoiLegacyFilter(editText.getText().toString(), null, filter.getAcceptedTypes(), (OsmandApplication) getApplication());
if (helper.createPoiFilter(nFilter)) {
AccessibleToast.makeText(
EditPOIFilterActivity.this,
diff --git a/OsmAnd/src/net/osmand/plus/activities/HelpActivity.java b/OsmAnd/src/net/osmand/plus/activities/HelpActivity.java
index 6887fc1556..7845082179 100644
--- a/OsmAnd/src/net/osmand/plus/activities/HelpActivity.java
+++ b/OsmAnd/src/net/osmand/plus/activities/HelpActivity.java
@@ -31,11 +31,11 @@ public class HelpActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
getMyApplication().applyTheme(this);
- super.onCreate(savedInstanceState);
supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
getWindow().setUiOptions(ActivityInfo.UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW);
}
+ super.onCreate(savedInstanceState);
wv = new WebView(this);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
String title = getString(R.string.help);
diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java
index 5571ac1772..d2561989b2 100644
--- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java
+++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java
@@ -27,7 +27,6 @@ import net.osmand.plus.OsmAndConstants;
import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandPlugin;
import net.osmand.plus.OsmandSettings;
-import net.osmand.plus.PoiFilter;
import net.osmand.plus.R;
import net.osmand.plus.TargetPointsHelper;
import net.osmand.plus.TargetPointsHelper.TargetPoint;
@@ -37,6 +36,7 @@ import net.osmand.plus.base.FailSafeFuntions;
import net.osmand.plus.base.MapViewTrackingUtilities;
import net.osmand.plus.helpers.GpxImportHelper;
import net.osmand.plus.helpers.WakeLockHelper;
+import net.osmand.plus.poi.PoiLegacyFilter;
import net.osmand.plus.render.RendererRegistry;
import net.osmand.plus.resources.ResourceManager;
import net.osmand.plus.routing.RoutingHelper;
@@ -336,9 +336,9 @@ public class MapActivity extends AccessibleActivity {
updateApplicationModeSettings();
String filterId = settings.getPoiFilterForMap();
- PoiFilter poiFilter = app.getPoiFilters().getFilterById(filterId);
+ PoiLegacyFilter poiFilter = app.getPoiFilters().getFilterById(filterId);
if (poiFilter == null) {
- poiFilter = new PoiFilter(null, app);
+ poiFilter = new PoiLegacyFilter(null, app);
}
mapLayers.getPoiMapLayer().setFilter(poiFilter);
diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java
index 11938b393d..2457cdde45 100644
--- a/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java
+++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java
@@ -22,11 +22,11 @@ import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandPlugin;
import net.osmand.plus.OsmandSettings;
import net.osmand.plus.OsmandSettings.CommonPreference;
-import net.osmand.plus.PoiFilter;
-import net.osmand.plus.PoiFiltersHelper;
import net.osmand.plus.R;
import net.osmand.plus.SQLiteTileSource;
import net.osmand.plus.helpers.GpxUiHelper;
+import net.osmand.plus.poi.PoiLegacyFilter;
+import net.osmand.plus.poi.PoiFiltersHelper;
import net.osmand.plus.rastermaps.OsmandRasterMapsPlugin;
import net.osmand.plus.render.MapVectorLayer;
import net.osmand.plus.render.RenderingIcons;
@@ -259,8 +259,8 @@ public class MapActivityLayers {
- public AlertDialog selectPOIFilterLayer(final OsmandMapTileView mapView, final PoiFilter[] selected){
- final List userDefined = new ArrayList();
+ public AlertDialog selectPOIFilterLayer(final OsmandMapTileView mapView, final PoiLegacyFilter[] selected){
+ final List userDefined = new ArrayList();
OsmandApplication app = (OsmandApplication)getApplication();
final PoiFiltersHelper poiFilters = app.getPoiFilters();
final ContextMenuAdapter adapter = new ContextMenuAdapter(activity);
@@ -273,7 +273,7 @@ public class MapActivityLayers {
// 2nd custom
adapter.item(getString(R.string.poi_filter_custom_filter)).icon(RenderingIcons.getBigIconResourceId("user_defined")).reg();
- for (PoiFilter f : poiFilters.getUserDefinedPoiFilters()) {
+ for (PoiLegacyFilter f : poiFilters.getUserDefinedPoiFilters()) {
Item it = adapter.item(f.getName());
if (RenderingIcons.containsBigIcon(f.getSimplifiedId())) {
it.icon(RenderingIcons.getBigIconResourceId(f.getSimplifiedId()));
@@ -298,7 +298,7 @@ public class MapActivityLayers {
@Override
public void onClick(DialogInterface dialog, int which) {
if(which == 1){
- String filterId = PoiFilter.CUSTOM_FILTER_ID;
+ String filterId = PoiLegacyFilter.CUSTOM_FILTER_ID;
getApplication().getSettings().setPoiFilterForMap(filterId);
Intent newIntent = new Intent(activity, EditPOIFilterActivity.class);
newIntent.putExtra(EditPOIFilterActivity.AMENITY_FILTER, filterId);
@@ -315,7 +315,7 @@ public class MapActivityLayers {
filterId = PoiFiltersHelper.getOsmDefinedFilterId(categories[which - userDefined.size() - 2]);
}
getApplication().getSettings().setPoiFilterForMap(filterId);
- PoiFilter f = poiFilters.getFilterById(filterId);
+ PoiLegacyFilter f = poiFilters.getFilterById(filterId);
if (f != null) {
f.clearNameFilter();
}
diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java
index 7bd5dfa2de..d59a00f79d 100644
--- a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java
+++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java
@@ -30,21 +30,21 @@ import net.osmand.osm.MapRenderingTypes;
import net.osmand.plus.ContextMenuAdapter;
import net.osmand.plus.ContextMenuAdapter.Item;
import net.osmand.plus.ContextMenuAdapter.OnContextMenuClick;
-import net.osmand.plus.NameFinderPoiFilter;
import net.osmand.plus.OsmAndConstants;
import net.osmand.plus.OsmAndFormatter;
import net.osmand.plus.OsmAndLocationProvider.OsmAndCompassListener;
import net.osmand.plus.OsmAndLocationProvider.OsmAndLocationListener;
import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandSettings;
-import net.osmand.plus.PoiFilter;
import net.osmand.plus.R;
-import net.osmand.plus.SearchByNameFilter;
import net.osmand.plus.activities.EditPOIFilterActivity;
import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.activities.MapActivityActions;
import net.osmand.plus.activities.OsmandListActivity;
import net.osmand.plus.dialogs.DirectionsDialogs;
+import net.osmand.plus.poi.NameFinderPoiFilter;
+import net.osmand.plus.poi.PoiLegacyFilter;
+import net.osmand.plus.poi.SearchByNameFilter;
import net.osmand.plus.render.RenderingIcons;
import net.osmand.plus.views.DirectionDrawable;
import net.osmand.util.Algorithms;
@@ -92,7 +92,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
private static final int ORIENTATION_270 = 1;
private static final int ORIENTATION_180 = 2;
- private PoiFilter filter;
+ private PoiLegacyFilter filter;
private AmenityAdapter amenityAdapter;
private EditText searchFilter;
private View searchFilterLayout;
@@ -140,7 +140,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
public boolean onMenuItemClick(MenuItem item) {
if(isSearchByNameFilter()){
Intent newIntent = new Intent(SearchPOIActivity.this, EditPOIFilterActivity.class);
- newIntent.putExtra(EditPOIFilterActivity.AMENITY_FILTER, PoiFilter.CUSTOM_FILTER_ID);
+ newIntent.putExtra(EditPOIFilterActivity.AMENITY_FILTER, PoiLegacyFilter.CUSTOM_FILTER_ID);
if(location != null) {
newIntent.putExtra(EditPOIFilterActivity.SEARCH_LAT, location.getLatitude());
newIntent.putExtra(EditPOIFilterActivity.SEARCH_LON, location.getLongitude());
@@ -300,7 +300,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
String filterId = bundle.getString(AMENITY_FILTER);
- PoiFilter filter = app.getPoiFilters().getFilterById(filterId);
+ PoiLegacyFilter filter = app.getPoiFilters().getFilterById(filterId);
if (filter != this.filter) {
this.filter = filter;
if (filter != null) {
@@ -358,7 +358,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
if(loc != null){
Map> map = app.getResourceManager().searchAmenityCategoriesByName(query, loc.getLatitude(), loc.getLongitude());
if(!map.isEmpty()){
- PoiFilter filter = ((OsmandApplication)getApplication()).getPoiFilters().getFilterById(PoiFilter.CUSTOM_FILTER_ID);
+ PoiLegacyFilter filter = ((OsmandApplication)getApplication()).getPoiFilters().getFilterById(PoiLegacyFilter.CUSTOM_FILTER_ID);
if(filter != null){
showFilterItem.setVisible(true);
filter.setMapToAccept(map);
@@ -451,7 +451,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
}
public boolean isSearchByNameFilter(){
- return filter != null && PoiFilter.BY_NAME_FILTER_ID.equals(filter.getFilterId());
+ return filter != null && PoiLegacyFilter.BY_NAME_FILTER_ID.equals(filter.getFilterId());
}
diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchPoiFilterFragment.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchPoiFilterFragment.java
index 072524fdc7..41946bab76 100644
--- a/OsmAnd/src/net/osmand/plus/activities/search/SearchPoiFilterFragment.java
+++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchPoiFilterFragment.java
@@ -12,14 +12,14 @@ import android.support.v7.app.ActionBarActivity;
import android.view.*;
import net.osmand.access.AccessibleToast;
import net.osmand.data.LatLon;
-import net.osmand.plus.NameFinderPoiFilter;
import net.osmand.plus.OsmandApplication;
-import net.osmand.plus.PoiFilter;
-import net.osmand.plus.PoiFiltersHelper;
import net.osmand.plus.R;
-import net.osmand.plus.SearchByNameFilter;
import net.osmand.plus.activities.EditPOIFilterActivity;
import net.osmand.plus.activities.search.SearchActivity.SearchActivityChild;
+import net.osmand.plus.poi.NameFinderPoiFilter;
+import net.osmand.plus.poi.PoiLegacyFilter;
+import net.osmand.plus.poi.PoiFiltersHelper;
+import net.osmand.plus.poi.SearchByNameFilter;
import net.osmand.plus.render.RenderingIcons;
import net.osmand.plus.resources.ResourceManager;
import android.content.Intent;
@@ -51,8 +51,8 @@ public class SearchPoiFilterFragment extends ListFragment implements SearchActiv
lv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
@Override
public boolean onItemLongClick(AdapterView> av, View v, int pos, long id) {
- PoiFilter poi = ((AmenityAdapter) getListAdapter()).getItem(pos);
- if(!poi.isStandardFilter() || poi.getFilterId().equals(PoiFilter.CUSTOM_FILTER_ID)) {
+ PoiLegacyFilter poi = ((AmenityAdapter) getListAdapter()).getItem(pos);
+ if(!poi.isStandardFilter() || poi.getFilterId().equals(PoiLegacyFilter.CUSTOM_FILTER_ID)) {
showEditActivity(poi);
return true;
}
@@ -65,7 +65,7 @@ public class SearchPoiFilterFragment extends ListFragment implements SearchActiv
public void refreshPoiListAdapter() {
PoiFiltersHelper poiFilters = getApp().getPoiFilters();
- List filters = new ArrayList() ;
+ List filters = new ArrayList() ;
filters.addAll(poiFilters.getTopStandardFilters());
filters.addAll(poiFilters.getUserDefinedPoiFilters());
filters.addAll(poiFilters.getOsmDefinedPoiFilters());
@@ -95,7 +95,7 @@ public class SearchPoiFilterFragment extends ListFragment implements SearchActiv
}
}
- private void showEditActivity(PoiFilter poi) {
+ private void showEditActivity(PoiLegacyFilter poi) {
Intent newIntent = new Intent(getActivity(), EditPOIFilterActivity.class);
// folder selected
newIntent.putExtra(EditPOIFilterActivity.AMENITY_FILTER, poi.getFilterId());
@@ -112,8 +112,8 @@ public class SearchPoiFilterFragment extends ListFragment implements SearchActiv
@Override
public void onListItemClick(ListView parent, View v, int position, long id) {
- final PoiFilter filter = ((AmenityAdapter) getListAdapter()).getItem(position);
- if (filter.getFilterId().equals(PoiFilter.CUSTOM_FILTER_ID)) {
+ final PoiLegacyFilter filter = ((AmenityAdapter) getListAdapter()).getItem(position);
+ if (filter.getFilterId().equals(PoiLegacyFilter.CUSTOM_FILTER_ID)) {
filter.clearFilter();
showEditActivity(filter);
return;
@@ -133,8 +133,8 @@ public class SearchPoiFilterFragment extends ListFragment implements SearchActiv
- class AmenityAdapter extends ArrayAdapter {
- AmenityAdapter(List list) {
+ class AmenityAdapter extends ArrayAdapter {
+ AmenityAdapter(List list) {
super(getActivity(), R.layout.searchpoifolder_list, list);
}
@@ -147,11 +147,11 @@ public class SearchPoiFilterFragment extends ListFragment implements SearchActiv
}
TextView label = (TextView) row.findViewById(R.id.folder_label);
ImageView icon = (ImageView) row.findViewById(R.id.folder_icon);
- final PoiFilter model = getItem(position);
+ final PoiLegacyFilter model = getItem(position);
label.setText(model.getName());
- if(model.getFilterId().equals(PoiFilter.CUSTOM_FILTER_ID)) {
+ if(model.getFilterId().equals(PoiLegacyFilter.CUSTOM_FILTER_ID)) {
icon.setImageResource(android.R.drawable.ic_input_get);
- } else if (model.getFilterId().equals(PoiFilter.BY_NAME_FILTER_ID)) {
+ } else if (model.getFilterId().equals(PoiLegacyFilter.BY_NAME_FILTER_ID)) {
icon.setImageResource(android.R.drawable.ic_search_category_default);
} else {
if(RenderingIcons.containsBigIcon(model.getSimplifiedId())) {
diff --git a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java
index 273e8b55cc..c1513370a6 100644
--- a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java
+++ b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java
@@ -15,11 +15,11 @@ import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandPlugin;
import net.osmand.plus.OsmandSettings;
import net.osmand.plus.OsmandSettings.CommonPreference;
-import net.osmand.plus.PoiFilter;
import net.osmand.plus.R;
import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.activities.SettingsActivity;
import net.osmand.plus.activities.TransportRouteHelper;
+import net.osmand.plus.poi.PoiLegacyFilter;
import net.osmand.plus.views.OsmandMapTileView;
import net.osmand.render.RenderingRuleProperty;
import net.osmand.render.RenderingRuleStorageProperties;
@@ -149,7 +149,7 @@ public class ConfigureMapMenu {
}
protected void selectPOILayer(final OsmandSettings settings) {
- final PoiFilter[] selected = new PoiFilter[1];
+ final PoiLegacyFilter[] selected = new PoiLegacyFilter[1];
AlertDialog dlg = ma.getMapLayers().selectPOIFilterLayer(ma.getMapView(), selected);
dlg.setOnDismissListener(new DialogInterface.OnDismissListener() {
diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java
index 2906606c8d..358cc0a710 100644
--- a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java
+++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java
@@ -9,11 +9,11 @@ import net.osmand.data.LocationPoint;
import net.osmand.plus.OsmAndFormatter;
import net.osmand.plus.OsmAndLocationProvider.OsmAndLocationListener;
import net.osmand.plus.OsmandApplication;
-import net.osmand.plus.PoiFilter;
import net.osmand.plus.R;
import net.osmand.plus.activities.IntermediatePointsDialog;
import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.helpers.WaypointHelper.LocationPointWrapper;
+import net.osmand.plus.poi.PoiLegacyFilter;
import net.osmand.plus.views.AnimateDraggingMapThread;
import net.osmand.plus.views.MapControlsLayer;
import net.osmand.util.MapUtils;
@@ -485,7 +485,7 @@ public class WaypointDialogHelper implements OsmAndLocationListener {
running[0] = position;
thisAdapter.notifyDataSetInvalidated();
MapActivity map = (MapActivity) ctx;
- final PoiFilter[] selected = new PoiFilter[1];
+ final PoiLegacyFilter[] selected = new PoiLegacyFilter[1];
AlertDialog dlg = map.getMapLayers().selectPOIFilterLayer(map.getMapView(), selected);
dlg.setOnDismissListener(new OnDismissListener() {
@Override
@@ -504,9 +504,9 @@ public class WaypointDialogHelper implements OsmAndLocationListener {
private void selectPoi(final int[] running, final ArrayAdapter