Quick search

This commit is contained in:
Victor Shcherb 2019-07-07 14:35:43 +02:00
parent ccbd9b0d3f
commit bd1f4785e4

View file

@ -218,8 +218,9 @@ public class QuickSearchListAdapter extends ArrayAdapter<QuickSearchListItem> {
String textTitle;
int minimalSearchRadius = searchUICore.getMinimalSearchRadius(searchPhrase);
if (searchUICore.isSearchMoreAvailable(searchPhrase) && minimalSearchRadius != Integer.MAX_VALUE) {
double rd = OsmAndFormatter.calculateRoundedDist(minimalSearchRadius, app);
textTitle = app.getString(R.string.nothing_found_in_radius) + " "
+ OsmAndFormatter.getFormattedDistance(minimalSearchRadius, app);
+ OsmAndFormatter.getFormattedDistance((float) rd, app);
} else {
textTitle = app.getString(R.string.search_nothing_found);
}