diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java index ba1b14d736..facc8f5cd2 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java @@ -4,6 +4,7 @@ import java.util.Collection; import java.util.Comparator; import java.util.List; +import net.osmand.IProgress; import net.osmand.CollatorStringMatcher; import net.osmand.CollatorStringMatcher.StringMatcherMode; import net.osmand.OsmAndCollator; @@ -36,6 +37,16 @@ public class SearchCityByNameActivity extends SearchByNameAbstractActivity protected void reset() { //searchVillagesMode = -1; //osmandSettings.setLastSearchedCity(-1L, "", null); + + //Issue 2535: Try reload indexes as workaround + new AsyncTask>() { + @Override + protected List doInBackground(Void... params) { + return getMyApplication().getResourceManager().reloadIndexes(IProgress.EMPTY_PROGRESS); + } + }.execute(); + getInitializeTask(); + super.reset(); }