网约车 Cancel Completed状态下 UI调整
This commit is contained in:
@@ -620,7 +620,8 @@ class MogoOCHTaxiModel {
|
||||
switch ( status ) {
|
||||
case Cancel:
|
||||
clearCurrentOCHOrder();
|
||||
OCHTaxiUiController.getInstance().removeFragment();
|
||||
// OCHTaxiUiController.getInstance().removeFragment();
|
||||
OCHTaxiUiController.getInstance().onOrderStatusChanged(status.getCode());
|
||||
break;
|
||||
case UserArriveAtStartStation:
|
||||
mIsArriveAtStartStation = true;
|
||||
|
||||
@@ -407,7 +407,11 @@ class OCHTaxiFragment extends BaseOchFragment< OCHTaxiView, OCHTaxiPresenter > i
|
||||
@Override
|
||||
public void onOrderStatusChanged(int status) {
|
||||
getActivity().runOnUiThread(() -> {
|
||||
getPanelView().setVisibility(status != 0 ? View.VISIBLE : View.INVISIBLE);
|
||||
if (status == OCHOrderStatus.None.getCode() || status == OCHOrderStatus.Cancel.getCode() || status == OCHOrderStatus.Completed.getCode() ){
|
||||
getPanelView().setVisibility(View.INVISIBLE);
|
||||
}else {
|
||||
getPanelView().setVisibility(View.VISIBLE);
|
||||
}
|
||||
updateOrderStatus();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user