back out and document findings
This commit is contained in:
parent
cf9699faf8
commit
8b525663d5
1 changed files with 4 additions and 6 deletions
|
@ -4,7 +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.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;
|
||||||
|
@ -25,7 +25,6 @@ import android.view.View;
|
||||||
import android.view.ViewGroup.LayoutParams;
|
import android.view.ViewGroup.LayoutParams;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
import android.content.Intent;
|
|
||||||
|
|
||||||
public class SearchCityByNameActivity extends SearchByNameAbstractActivity<City> {
|
public class SearchCityByNameActivity extends SearchByNameAbstractActivity<City> {
|
||||||
|
|
||||||
|
@ -39,15 +38,14 @@ public class SearchCityByNameActivity extends SearchByNameAbstractActivity<City>
|
||||||
//searchVillagesMode = -1;
|
//searchVillagesMode = -1;
|
||||||
//osmandSettings.setLastSearchedCity(-1L, "", null);
|
//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>>() {
|
new AsyncTask<Void, Void, List<String>>() {
|
||||||
@Override
|
@Override
|
||||||
protected List<String> doInBackground(Void... params) {
|
protected List<String> doInBackground(Void... params) {
|
||||||
return getMyApplication().getResourceManager().reloadIndexes(IProgress.EMPTY_PROGRESS);
|
return getMyApplication().getResourceManager().reloadIndexes();
|
||||||
}
|
}
|
||||||
}.execute();
|
}.execute();
|
||||||
finish();
|
|
||||||
startActivity(createIntent(SearchCityByNameActivity.class));
|
|
||||||
|
|
||||||
super.reset();
|
super.reset();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue