[2.10.0] 点击自动驾驶按钮去掉为0拦截

This commit is contained in:
wangmingjun
2022-09-01 21:01:56 +08:00
parent b220c671f7
commit 771e4a702d
2 changed files with 1 additions and 8 deletions

View File

@@ -171,11 +171,7 @@ public abstract class BaseBusTabFragment<V extends IView, P extends Presenter<V>
@Override
public void onClickImpl(View v) {
if (CallerAutoPilotStatusListenerManager.INSTANCE.getAutoPilotStatusInfo().getState() != IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_DISABLE){
restartAutopilot();
}else {
ToastUtils.showShort(getResources().getString(R.string.bus_auto_disable_tip));
}
restartAutopilot();
}
});

View File

@@ -232,9 +232,6 @@ public abstract class BaseTaxiTabFragment<V extends IView, P extends Presenter<V
if (CallerAutoPilotStatusListenerManager.INSTANCE.getAutoPilotStatusInfo().getState() ==
IMoGoAutopilotStatusListener.STATUS_PARALLEL_DRIVING){
return; //远程代驾状态下不可开启自动驾驶,只能等远程代驾主动退出
}else if (CallerAutoPilotStatusListenerManager.INSTANCE.getAutoPilotStatusInfo().getState() ==
IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_DISABLE){
ToastUtils.showShort(getResources().getString(R.string.module_och_taxi_auto_disable_tip));
}else if (!(boolean)ctvAutopilotStatusRL.getTag()){
ToastUtils.showShort(getResources().getString(R.string.module_och_taxi_auto_disable_tip1));
}else {