Try fix again with subsequent re-init
This commit is contained in:
parent
ee9846d388
commit
d8b1f2cd2c
1 changed files with 11 additions and 0 deletions
|
@ -4,6 +4,7 @@ import java.util.Collection;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import net.osmand.IProgress;
|
||||||
import net.osmand.CollatorStringMatcher;
|
import net.osmand.CollatorStringMatcher;
|
||||||
import net.osmand.CollatorStringMatcher.StringMatcherMode;
|
import net.osmand.CollatorStringMatcher.StringMatcherMode;
|
||||||
import net.osmand.OsmAndCollator;
|
import net.osmand.OsmAndCollator;
|
||||||
|
@ -36,6 +37,16 @@ public class SearchCityByNameActivity extends SearchByNameAbstractActivity<City>
|
||||||
protected void reset() {
|
protected void reset() {
|
||||||
//searchVillagesMode = -1;
|
//searchVillagesMode = -1;
|
||||||
//osmandSettings.setLastSearchedCity(-1L, "", null);
|
//osmandSettings.setLastSearchedCity(-1L, "", null);
|
||||||
|
|
||||||
|
//Issue 2535: Try reload indexes as workaround
|
||||||
|
new AsyncTask<Void, Void, List<String>>() {
|
||||||
|
@Override
|
||||||
|
protected List<String> doInBackground(Void... params) {
|
||||||
|
return getMyApplication().getResourceManager().reloadIndexes(IProgress.EMPTY_PROGRESS);
|
||||||
|
}
|
||||||
|
}.execute();
|
||||||
|
getInitializeTask();
|
||||||
|
|
||||||
super.reset();
|
super.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue