[资源名称修改]
This commit is contained in:
yangyakun
2024-08-26 10:52:54 +08:00
parent b4acf271e8
commit 1c513c2127
3 changed files with 8 additions and 13 deletions

View File

@@ -183,15 +183,15 @@ class ShuttleFragment : BaseShuttleTabFragment<ShuttleFragment?, BusPresenter?>(
}
UiThreadHandler.post(Runnable {
if (stationList == null) {
if (stationList == null) {
// 获取小巴数据失败
return@Runnable
}
showStationsPanel()
showOrHideSwitchLineBtn(false)
mLineName!!.text = lineName
mTaskTime!!.text = ResourcesUtils.getString(R.string.bus_line_time_tag,lineTime)
mLineName?.text = lineName
mTaskTime?.text = ResourcesUtils.getString(R.string.shuttle_line_time_tag,lineTime)
// 渲染小巴路线数据
updateBusStationStatus(stationList, arrivingOrArrivedIndex, isArrived)
}, UiThreadHandler.MODE.QUEUE)

View File

@@ -99,15 +99,10 @@ class BusPresenter(view: ShuttleFragment?) : Presenter<ShuttleFragment?>(view),
arrivingOrArrivedIndex - 1
}
d(SceneConstant.M_BUS + "BusOrderModel =", " mCurrentStation =$mCurrentStation")
UiThreadHandler.post({
if (mView != null) {
mView!!.updateBusTaskStatus(
lineName, lineTime,
stationList, arrivingOrArrivedIndex, isArrived
)
}
}, UiThreadHandler.MODE.QUEUE)
mView?.updateBusTaskStatus(
lineName, lineTime,
stationList, arrivingOrArrivedIndex, isArrived
)
}
override fun updateEmptyUi() {

View File

@@ -30,7 +30,7 @@
<string name="bus_arrived_str">进站</string>
<string name="bus_station_txt_tag_start"></string>
<string name="bus_station_txt_tag_end"></string>
<string name="bus_line_time_tag">班次:%1$s</string>
<string name="shuttle_line_time_tag">班次:%1$s</string>
<string name="bus_refresh_time">更新时间:%1$s</string>