|
@@ -1004,6 +1004,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
}
|
|
}
|
|
|
|
|
|
private void resetData() {
|
|
private void resetData() {
|
|
|
|
+ vRightPatientInfo.setVisibility(View.VISIBLE);
|
|
|
|
+ vRightCallInfo.setVisibility(View.GONE);
|
|
|
|
+ vRightCallListInfo.setVisibility(View.GONE);
|
|
wardInformationList.clear();
|
|
wardInformationList.clear();
|
|
sickbedInformationList.clear();
|
|
sickbedInformationList.clear();
|
|
roomAdapter.updateList(wardInformationList);
|
|
roomAdapter.updateList(wardInformationList);
|
|
@@ -1237,11 +1240,19 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
|
|
|
|
@OnClick(R.id.right_in_call_list_layout_iv_back)
|
|
@OnClick(R.id.right_in_call_list_layout_iv_back)
|
|
public void back() {
|
|
public void back() {
|
|
|
|
+ if (!Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
+ ToastUtil.showToast("当前正在通话中,无法返回");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
EventBus.getDefault().post(new MessageEvent(0, Constants.EVENT_FRAGMENT));
|
|
EventBus.getDefault().post(new MessageEvent(0, Constants.EVENT_FRAGMENT));
|
|
}
|
|
}
|
|
|
|
|
|
@OnClick(R.id.right_patient_info_layout_tv_back)
|
|
@OnClick(R.id.right_patient_info_layout_tv_back)
|
|
public void backHost() {
|
|
public void backHost() {
|
|
|
|
+ if (!Constants.CALL_STATE.equals(Constants.STANDBY)) {
|
|
|
|
+ ToastUtil.showToast("当前正在通话中,无法返回");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
EventBus.getDefault().post(new MessageEvent(0, Constants.EVENT_FRAGMENT));
|
|
EventBus.getDefault().post(new MessageEvent(0, Constants.EVENT_FRAGMENT));
|
|
}
|
|
}
|
|
|
|
|