[290 bus/taxi]bus司机端埋点优化

This commit is contained in:
wangmingjun
2022-08-04 20:43:46 +08:00
parent 4faeedcaea
commit 1ca70491a7
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -247,7 +247,6 @@ public class BusPresenter extends Presenter<BusFragment>
@Override
public void startOpenAutopilot() {
//非美化模式下启动动画
BusOrderModel.getInstance().triggerStartServiceEvent(isRestartAutopilot, false);
runOnUIThread(() -> mView.startAutopilotAnimation());
}