[8.0.0]
[routing] [fea] [java-->kotlin]
This commit is contained in:
@@ -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)+"…"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user