[2.11.0/1.6.0] bus司机屏选择运营任务显示"结束任务"

This commit is contained in:
wangmingjun
2022-09-23 13:09:58 +08:00
parent 7eb429e878
commit 4e123c5f6d

View File

@@ -167,6 +167,7 @@ public class BusFragment extends BaseBusTabFragment<BusFragment, BusPresenter>
}
showStationsPanel();
showOrHideSwitchLineBtn(false);
mLineName.setText(lineName);
mTaskTime.setText(getString(R.string.bus_line_time_tag)+ lineTime);
@@ -184,16 +185,12 @@ public class BusFragment extends BaseBusTabFragment<BusFragment, BusPresenter>
if (arrivingOrArrivedIndex == stationList.size() - 1 && isArrived){
//切换路线和结束路线按钮切换
showOrHideSwitchLineBtn(false);
showSlidePanel("单程结束");
setOrRemoveMapMaker(false, BusConst.BUS_END_MAP_MAKER, endStation.getLat()
, endStation.getLon(),R.raw.end_marker);
}else if (arrivingOrArrivedIndex == 0 && isArrived){
showOrHideSwitchLineBtn(true);
showSlidePanel("滑动出发");
setOrRemoveMapMaker(true, BusConst.BUS_START_MAP_MAKER,
@@ -206,8 +203,6 @@ public class BusFragment extends BaseBusTabFragment<BusFragment, BusPresenter>
showSlidePanel("滑动出发");
}
showOrHideSwitchLineBtn(false);
setOrRemoveMapMaker(false, BusConst.BUS_START_MAP_MAKER, startStation.getLat()
, startStation.getLon(),R.raw.star_marker);
setOrRemoveMapMaker(true, BusConst.BUS_END_MAP_MAKER, endStation.getLat()