[Taxi-d 280, Taxi-p 130] taxi司机端服务中杀掉进程,再次开启app自动驾驶按钮tag初值为true
This commit is contained in:
@@ -211,6 +211,7 @@ public class TaxiPresenter extends Presenter<TaxiFragment> implements ITaxiADASS
|
||||
|
||||
if (TaxiOrderStatusEnum.OnTheWayToEnd.getCode() == order.orderStatus){
|
||||
TaxiModel.getInstance().startDynamicCalculateRouteInfo();
|
||||
runOnUIThread(() -> mView.updateCtvAutopilotStatusTag(true));
|
||||
}
|
||||
|
||||
if (TaxiOrderStatusEnum.ArriveAtEnd.getCode() == order.orderStatus ||
|
||||
|
||||
@@ -91,7 +91,7 @@ public abstract class BaseTaxiTabFragment<V extends IView, P extends Presenter<V
|
||||
groupTestPanel = findViewById(R.id.groupTestPanel);
|
||||
ctvAutopilotStatus = findViewById(R.id.module_mogo_och_autopilot_status);
|
||||
ctvAutopilotStatus.setBackground(getResources().getDrawable(R.drawable.taxi_autopilot_bg_selector));
|
||||
ctvAutopilotStatus.setTag(false);
|
||||
updateCtvAutopilotStatusTag(false);
|
||||
mAutopilotImage = findViewById(R.id.module_och_autopilot_iv);
|
||||
mAutopilotTv = findViewById(R.id.module_och_autopilot_tv);
|
||||
flStationPanelContainer = findViewById(R.id.module_mogo_och_station_panel_container);
|
||||
@@ -296,8 +296,12 @@ public abstract class BaseTaxiTabFragment<V extends IView, P extends Presenter<V
|
||||
});
|
||||
}
|
||||
|
||||
public void updateCtvAutopilotStatusTag(boolean tag){
|
||||
ctvAutopilotStatus.setTag(tag);
|
||||
}
|
||||
|
||||
public void onCheckPilotConditionSafe(boolean isSafe){
|
||||
ctvAutopilotStatus.setTag(isSafe);
|
||||
updateCtvAutopilotStatusTag(isSafe);
|
||||
if (isSafe){
|
||||
ToastUtils.showLong(getResources().getString(
|
||||
R.string.module_och_taxi_order_choose_start_autopilot_tip));
|
||||
|
||||
Reference in New Issue
Block a user