diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java index 287cecb896..d50d37088d 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java @@ -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 rows = new ArrayList<>();