소스 검색

<不支持紧急呼叫通话>

weizhengliang 4 년 전
부모
커밋
1a5e619f23
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      app/src/main/java/com/wdkl/callingmainnursemanager/ui/fragment/CallingHostFragment.java

+ 12 - 0
app/src/main/java/com/wdkl/callingmainnursemanager/ui/fragment/CallingHostFragment.java

@@ -1089,6 +1089,18 @@ public class CallingHostFragment extends BaseFragment implements DoctorHostAdapt
         if (lastSelectCall == position) {
             callingEntity = MyApplication.callEntityList.get(position);
             if (callingEntity != null) {
+                //护士主机转接过来的呼叫
+                String type = callingEntity.getType();
+                if(!TextUtils.isEmpty(callingEntity.getDeviceMAC())&&callingEntity.getDeviceMAC().length()<3
+                        &&!callingEntity.getDeviceMAC().equals("0")){
+                    type = loopingUdpentity.getDeviceMAC();
+                }
+                if (Constants.WSHROOM_CALL.equals(type)) {
+                    //不支持紧急呼叫通话
+                    ToastUtil.showToast("不支持紧急呼叫通话");
+                    return;
+                }
+
                 //清除语音播报
                 if (null != loopVoice) {
                     loopVoice.setPalyDismiss(true);