Temp fix of slow WPT search

This commit is contained in:
Alexey Kulish 2016-10-26 22:29:07 +03:00
parent 94efb7846c
commit b652687d37

View file

@ -187,7 +187,7 @@ public class QuickSearchHelper implements ResourceListener {
sr.priority = SEARCH_WPT_OBJECT_PRIORITY; sr.priority = SEARCH_WPT_OBJECT_PRIORITY;
sr.objectType = ObjectType.WPT; sr.objectType = ObjectType.WPT;
sr.location = new LatLon(point.getLatitude(), point.getLongitude()); sr.location = new LatLon(point.getLatitude(), point.getLongitude());
sr.localeRelatedObjectName = app.getRegions().getCountryName(sr.location); //sr.localeRelatedObjectName = app.getRegions().getCountryName(sr.location);
sr.relatedObject = selectedGpx.getGpxFile(); sr.relatedObject = selectedGpx.getGpxFile();
sr.preferredZoom = 17; sr.preferredZoom = 17;
if (phrase.getUnknownSearchWordLength() <= 1 && phrase.isNoSelectedType()) { if (phrase.getUnknownSearchWordLength() <= 1 && phrase.isNoSelectedType()) {