[routing]
[fea]
[java-->kotlin]
This commit is contained in:
yangyakun
2025-07-01 15:04:45 +08:00
parent 319b42f228
commit ee0d26c90d

View File

@@ -62,7 +62,7 @@ class CurrentStationViewHolder(binding: View) : StationViewHolder(binding) {
private var currentStaionName: OCHGradientTextView = binding.findViewById(R.id.och_current_station_name)
private var actv_distance: AppCompatTextView = binding.findViewById(R.id.actv_distance)
override fun bind(item: BusStationBean,distanceAndView:String) {
var text = item.name
var text = item.name?:""
if(text.length>12){
text = text.slice(0..10)+""
}
@@ -91,7 +91,7 @@ class CurrentStationEndViewHolder(binding: View) : StationViewHolder(binding) {
private var currentStaionEndName: OCHGradientTextView = binding.findViewById(R.id.och_current_station_end_name)
private var actv_distance_end: AppCompatTextView = binding.findViewById(R.id.actv_distance_end)
override fun bind(item: BusStationBean,distanceAndView:String) {
var text = item.name
var text = item.name?:""
if(text.length>12){
text = text.slice(0..10)+""
}