Fix search at wrong place
This commit is contained in:
parent
65fd7d9827
commit
cf16e3c57a
1 changed files with 9 additions and 7 deletions
|
@ -702,13 +702,6 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
|||
boolean transliterate = app.getSettings().MAP_TRANSLITERATE_NAMES.get();
|
||||
searchHelper = app.getSearchUICore();
|
||||
searchUICore = searchHelper.getCore();
|
||||
if (newSearch) {
|
||||
setResultCollection(null);
|
||||
if (!phraseDefined) {
|
||||
searchUICore.resetPhrase();
|
||||
}
|
||||
phraseDefined = false;
|
||||
}
|
||||
|
||||
location = app.getLocationProvider().getLastKnownLocation();
|
||||
|
||||
|
@ -735,6 +728,15 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
|||
new LatLon(searchLatLon.getLatitude(), searchLatLon.getLongitude()));
|
||||
settings = settings.setLang(locale, transliterate);
|
||||
searchUICore.updateSettings(settings);
|
||||
|
||||
if (newSearch) {
|
||||
setResultCollection(null);
|
||||
if (!phraseDefined) {
|
||||
searchUICore.resetPhrase();
|
||||
}
|
||||
phraseDefined = false;
|
||||
}
|
||||
|
||||
searchUICore.setOnSearchStart(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
Loading…
Reference in a new issue