瀏覽代碼

<不支持紧急呼叫通话>

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) {
         if (lastSelectCall == position) {
             callingEntity = MyApplication.callEntityList.get(position);
             callingEntity = MyApplication.callEntityList.get(position);
             if (callingEntity != null) {
             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) {
                 if (null != loopVoice) {
                     loopVoice.setPalyDismiss(true);
                     loopVoice.setPalyDismiss(true);