Added sort on fly for search

This commit is contained in:
Alexey Kulish 2016-11-04 12:13:16 +03:00
parent 247c323f27
commit c817bea103

View file

@ -1110,7 +1110,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
if (!paused && !cancelPrev) {
boolean append = getResultCollection() != null;
if (append) {
getResultCollection().addSearchResults(apiResults, false, true);
getResultCollection().addSearchResults(apiResults, true, true);
} else {
SearchResultCollection resCollection = new SearchResultCollection(phrase);
resCollection.addSearchResults(apiResults, true, true);
@ -1131,7 +1131,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
if (!paused && !cancelPrev) {
if (getResultCollection() != null) {
SearchResultCollection resCollection =
getResultCollection().combineWithCollection(regionResultCollection, false, true);
getResultCollection().combineWithCollection(regionResultCollection, true, true);
updateSearchResult(resCollection, true);
} else {
updateSearchResult(regionResultCollection, false);