|
@@ -160,8 +160,6 @@ class CallingbedActivity :BaseActivity<CallingbedActivityPresenter, CallingbedMa
|
|
//添加webrtc登录回调
|
|
//添加webrtc登录回调
|
|
SocketManager.getInstance().addUserStateCallback(this)
|
|
SocketManager.getInstance().addUserStateCallback(this)
|
|
|
|
|
|
- initDevice()
|
|
|
|
-
|
|
|
|
//启动时间线程
|
|
//启动时间线程
|
|
timeThread = TimeThread()
|
|
timeThread = TimeThread()
|
|
timeThread.start()
|
|
timeThread.start()
|
|
@@ -268,6 +266,7 @@ class CallingbedActivity :BaseActivity<CallingbedActivityPresenter, CallingbedMa
|
|
Constant.DEVICE_STATUS = deviceInfo.status
|
|
Constant.DEVICE_STATUS = deviceInfo.status
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ initialized = true
|
|
view_title_layout_tv_hospital_name.text = deviceInfo.hospitalName + deviceInfo.partName
|
|
view_title_layout_tv_hospital_name.text = deviceInfo.hospitalName + deviceInfo.partName
|
|
|
|
|
|
if (deviceInfo.customerId != null) {
|
|
if (deviceInfo.customerId != null) {
|
|
@@ -277,10 +276,8 @@ class CallingbedActivity :BaseActivity<CallingbedActivityPresenter, CallingbedMa
|
|
|
|
|
|
if (TextUtils.isEmpty(Constant.SIP_ID)) {
|
|
if (TextUtils.isEmpty(Constant.SIP_ID)) {
|
|
showMessage("SIP ID为空")
|
|
showMessage("SIP ID为空")
|
|
- return
|
|
|
|
} else if (Constant.DEVICE_STATUS == 0) {
|
|
} else if (Constant.DEVICE_STATUS == 0) {
|
|
showMessage("设备未启用")
|
|
showMessage("设备未启用")
|
|
- return
|
|
|
|
}
|
|
}
|
|
|
|
|
|
//加载分机所绑定紧急按钮设备信息
|
|
//加载分机所绑定紧急按钮设备信息
|
|
@@ -288,7 +285,6 @@ class CallingbedActivity :BaseActivity<CallingbedActivityPresenter, CallingbedMa
|
|
presenter.getEmergencyDeviceInfo(deviceInfo.frameId)
|
|
presenter.getEmergencyDeviceInfo(deviceInfo.frameId)
|
|
}
|
|
}
|
|
|
|
|
|
- initialized = true
|
|
|
|
presenter.loadPartSettings(Constant.PART_ID)
|
|
presenter.loadPartSettings(Constant.PART_ID)
|
|
|
|
|
|
connectRtcWebSocket()
|
|
connectRtcWebSocket()
|