[290 bus/taxi]bus司机端埋点优化
This commit is contained in:
@@ -539,8 +539,9 @@ public class BusOrderModel {
|
||||
*/
|
||||
private void startAutopilot(boolean isRestart) {
|
||||
|
||||
isArrivedStation = false;
|
||||
triggerStartServiceEvent(isRestart, false);
|
||||
|
||||
isArrivedStation = false;
|
||||
BusStationBean currentStation = stationList.get( backgroundCurrentStationIndex);
|
||||
BusStationBean nextStation = stationList.get( backgroundCurrentStationIndex + 1);
|
||||
|
||||
@@ -988,7 +989,7 @@ public class BusOrderModel {
|
||||
}
|
||||
|
||||
public void triggerStartServiceEvent(boolean isRestart, boolean send) {
|
||||
if (stationList == null || backgroundCurrentStationIndex >= stationList.size() || backgroundCurrentStationIndex == 0) {
|
||||
if (stationList == null || backgroundCurrentStationIndex >= stationList.size()-1) {
|
||||
return;
|
||||
}
|
||||
BusStationBean currentStation = stationList.get( backgroundCurrentStationIndex);
|
||||
|
||||
@@ -247,7 +247,6 @@ public class BusPresenter extends Presenter<BusFragment>
|
||||
@Override
|
||||
public void startOpenAutopilot() {
|
||||
//非美化模式下启动动画
|
||||
BusOrderModel.getInstance().triggerStartServiceEvent(isRestartAutopilot, false);
|
||||
runOnUIThread(() -> mView.startAutopilotAnimation());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user