Added sort on fly for search
This commit is contained in:
parent
247c323f27
commit
c817bea103
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue