[Taxi/Bus Driver 2.5.1] bus 收车消除起终点
This commit is contained in:
@@ -42,6 +42,8 @@ public class OchBusFragment extends BaseOchBusTabFragment< OchBusFragment, OchBu
|
||||
|
||||
private View mBus;
|
||||
|
||||
private OchBusStation startStation = null;
|
||||
private OchBusStation endStation = null;
|
||||
|
||||
@Override
|
||||
public String getTagName() {
|
||||
@@ -163,8 +165,8 @@ public class OchBusFragment extends BaseOchBusTabFragment< OchBusFragment, OchBu
|
||||
// 获取当前站点的名称
|
||||
currentStationName = stationList.get( currentStation ).getName();
|
||||
|
||||
OchBusStation startStation = stationList.get(0);
|
||||
OchBusStation endStation = stationList.get(stationList.size() - 1);
|
||||
startStation = stationList.get(0);
|
||||
endStation = stationList.get(stationList.size() - 1);
|
||||
|
||||
// 是否到达起点
|
||||
if ( currentStation == 0 ) {
|
||||
@@ -278,6 +280,16 @@ public class OchBusFragment extends BaseOchBusTabFragment< OchBusFragment, OchBu
|
||||
tvOperationStatus.setText("出车");
|
||||
hideSlidePanel();
|
||||
hidPanel();
|
||||
|
||||
//移除起点终点
|
||||
if (null != startStation){
|
||||
setOrRemoveMapMaker(false, OchBusConst.BUS_START_MAP_MAKER,startStation.getLat()
|
||||
,startStation.getLon(),R.drawable.icon_station_start_end);
|
||||
}
|
||||
if (null != endStation){
|
||||
setOrRemoveMapMaker(false, OchBusConst.BUS_END_MAP_MAKER,endStation.getLat()
|
||||
,endStation.getLon(),R.drawable.icon_station_start_end);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user