Browse Source

<不支持紧急呼叫通话>

weizhengliang 4 năm trước cách đây
mục cha
commit
1a5e619f23

+ 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);