Move log nearest cities found back to searchFinished

This commit is contained in:
Chumva 2018-09-27 17:26:05 +03:00
parent f7a0addf86
commit c80a7386e4

View file

@ -1255,6 +1255,9 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
@Override
public boolean searchFinished(SearchPhrase phrase) {
if (SearchUICore.isDebugMode()) {
LOG.info("UI >> Nearest cities found: " + getSearchResultCollectionFormattedSize(getResultCollection()));
}
updateCitiesItems();
return true;
}
@ -1264,9 +1267,6 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
private void updateCitiesItems() {
SearchResultCollection res = getResultCollection();
if (SearchUICore.isDebugMode()) {
LOG.info("UI >> Nearest cities found: " + getSearchResultCollectionFormattedSize(res));
}
final OsmandSettings settings = app.getSettings();
List<QuickSearchListItem> rows = new ArrayList<>();