[UI] 车友列表-F
This commit is contained in:
@@ -129,7 +129,7 @@ class OnlineCarPanelAdapter extends RecyclerView.Adapter<OnlineCarPanelAdapter.V
|
||||
}
|
||||
float distance = Utils.calculateLineDistance(location.getLon(), location.getLat(), lon, lat);
|
||||
if (distance >= 1000) {
|
||||
return String.format("%.1f千米", distance / 1000);
|
||||
return String.format("%.1f公里", distance / 1000);
|
||||
} else {
|
||||
return String.format("%.1f米", distance);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user