[Taxi-d 280, Taxi-p 130] 1、乘客屏优化开启行程页启动时机 2、点击乘客屏开始行程按钮可能失效问题

This commit is contained in:
wangmingjun
2022-06-30 21:09:53 +08:00
parent dd35355eda
commit 41db1736ce
2 changed files with 11 additions and 1 deletions

View File

@@ -736,9 +736,19 @@ public class TaxiPassengerModel implements IOCHTaxiPassengerNaviChangedCallback
phoneTail, new TaxiPassengerServiceCallback<TaxiPassengerBaseRespBean>() {
@Override
public void onSuccess(TaxiPassengerBaseRespBean data) {
if (data != null && data.code == 0 && mCurrentOCHOrder != null){
//乘客验证成功,更新订单状态为 "乘客已上车", 立马弹出乘客开始行程页面,不再等待轮询
mCurrentOCHOrder.orderStatus = TaxiPassengerOrderStatusEnum.UserArriveAtStart.getCode();
if (mOrderStatusCallbackMap.size() > 0) {
for (IOCHTaxiPassengerOrderStatusCallback callback :mOrderStatusCallbackMap.values()){
callback.onCurrentOrderStatusChanged(mCurrentOCHOrder);
}
}
}
if(commonCallback!=null) {
commonCallback.onCommonCallback();
}
}
@Override

View File

@@ -283,8 +283,8 @@ public class TaxiPassengerBaseFragment extends MvpFragment<TaxiPassengerBaseFrag
if (isShow){
if (mStartAutopilotView == null || mStartAutopilotView.get() == null){
mStartAutopilotView = new WeakReference<>(new TaxiPassengerStartAutopilotView(getContext()));
mStartAutopilotView.get().setOnClickStartAutopilotBtnCallback(this);
}
mStartAutopilotView.get().setOnClickStartAutopilotBtnCallback(this);
OverlayViewUtils.showOverlayView(getActivity(),mStartAutopilotView.get());
updateStartAutopilotBtnStatus(isClickable);
}else {