back out and document findings

This commit is contained in:
sonora 2015-01-17 14:24:15 +01:00
parent cf9699faf8
commit 8b525663d5

View file

@ -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<City> {
@ -39,15 +38,14 @@ public class SearchCityByNameActivity extends SearchByNameAbstractActivity<City>
//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<Void, Void, List<String>>() {
@Override
protected List<String> doInBackground(Void... params) {
return getMyApplication().getResourceManager().reloadIndexes(IProgress.EMPTY_PROGRESS);
return getMyApplication().getResourceManager().reloadIndexes();
}
}.execute();
finish();
startActivity(createIntent(SearchCityByNameActivity.class));
super.reset();
}