From 8b525663d5a9d51e49ad6d9ff8d62cd09268c9eb Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 17 Jan 2015 14:24:15 +0100 Subject: [PATCH] back out and document findings --- .../activities/search/SearchCityByNameActivity.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java index e462ee5c52..867c915785 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java @@ -4,7 +4,7 @@ import java.util.Collection; import java.util.Comparator; import java.util.List; -import net.osmand.IProgress; +//import net.osmand.IProgress; import net.osmand.CollatorStringMatcher; import net.osmand.CollatorStringMatcher.StringMatcherMode; import net.osmand.OsmAndCollator; @@ -25,7 +25,6 @@ import android.view.View; import android.view.ViewGroup.LayoutParams; import android.widget.Button; import android.widget.FrameLayout; -import android.content.Intent; public class SearchCityByNameActivity extends SearchByNameAbstractActivity { @@ -39,15 +38,14 @@ public class SearchCityByNameActivity extends SearchByNameAbstractActivity //searchVillagesMode = -1; //osmandSettings.setLastSearchedCity(-1L, "", null); - //Issue 2535: Try reload indexes as workaround + //Issue 2535: Try to reload indexes as workaround + // This creates the issue immeadiately after tapping "Reset", but then going back to the searchAdressFragment screen resets the issue and everything works(!?) new AsyncTask>() { @Override protected List doInBackground(Void... params) { - return getMyApplication().getResourceManager().reloadIndexes(IProgress.EMPTY_PROGRESS); + return getMyApplication().getResourceManager().reloadIndexes(); } }.execute(); - finish(); - startActivity(createIntent(SearchCityByNameActivity.class)); super.reset(); }