Quick search
This commit is contained in:
parent
ccbd9b0d3f
commit
bd1f4785e4
1 changed files with 2 additions and 1 deletions
|
@ -218,8 +218,9 @@ public class QuickSearchListAdapter extends ArrayAdapter<QuickSearchListItem> {
|
||||||
String textTitle;
|
String textTitle;
|
||||||
int minimalSearchRadius = searchUICore.getMinimalSearchRadius(searchPhrase);
|
int minimalSearchRadius = searchUICore.getMinimalSearchRadius(searchPhrase);
|
||||||
if (searchUICore.isSearchMoreAvailable(searchPhrase) && minimalSearchRadius != Integer.MAX_VALUE) {
|
if (searchUICore.isSearchMoreAvailable(searchPhrase) && minimalSearchRadius != Integer.MAX_VALUE) {
|
||||||
|
double rd = OsmAndFormatter.calculateRoundedDist(minimalSearchRadius, app);
|
||||||
textTitle = app.getString(R.string.nothing_found_in_radius) + " "
|
textTitle = app.getString(R.string.nothing_found_in_radius) + " "
|
||||||
+ OsmAndFormatter.getFormattedDistance(minimalSearchRadius, app);
|
+ OsmAndFormatter.getFormattedDistance((float) rd, app);
|
||||||
} else {
|
} else {
|
||||||
textTitle = app.getString(R.string.search_nothing_found);
|
textTitle = app.getString(R.string.search_nothing_found);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue