From 7270cc6efae585047d203248c862798a389e6d9d Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 17 Jan 2015 09:15:58 +0100 Subject: [PATCH] Issue 2535: Try reload indexes as workaround --- .../plus/activities/search/SearchCityByNameActivity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java index ba1b14d736..51e9ae9d27 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java @@ -36,6 +36,15 @@ 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(); + super.reset(); }