|
@@ -203,7 +203,7 @@ class FramePartFragment: BaseFragment<FramePartPresenter, FragmentFramePartBindi
|
|
if (System.currentTimeMillis() - clickTime < 3000) {
|
|
if (System.currentTimeMillis() - clickTime < 3000) {
|
|
showMessage(R.string.call_wait)
|
|
showMessage(R.string.call_wait)
|
|
} else {
|
|
} else {
|
|
- if (frame.customerName != null && frame.bedDeviceId != null) {
|
|
|
|
|
|
+ if (frame.bedDeviceId != null && (!TextUtils.isEmpty(frame.customerName) || !TextUtils.isEmpty(frame.deviceSipId))) {
|
|
//呼出时停止语音播报及铃声
|
|
//呼出时停止语音播报及铃声
|
|
SpeechUtil.getInstance().stopSpeak(true)
|
|
SpeechUtil.getInstance().stopSpeak(true)
|
|
RingPlayHelper.stopRingTone()
|
|
RingPlayHelper.stopRingTone()
|
|
@@ -251,7 +251,7 @@ class FramePartFragment: BaseFragment<FramePartPresenter, FragmentFramePartBindi
|
|
if (System.currentTimeMillis() - clickTime < 3000) {
|
|
if (System.currentTimeMillis() - clickTime < 3000) {
|
|
showMessage(R.string.call_wait)
|
|
showMessage(R.string.call_wait)
|
|
} else {
|
|
} else {
|
|
- if (frame.customerName != null && frame.bedDeviceId != null) {
|
|
|
|
|
|
+ if (frame.bedDeviceId != null && (!TextUtils.isEmpty(frame.customerName) || !TextUtils.isEmpty(frame.deviceSipId))) {
|
|
//呼出时停止语音播报及铃声
|
|
//呼出时停止语音播报及铃声
|
|
SpeechUtil.getInstance().stopSpeak(true)
|
|
SpeechUtil.getInstance().stopSpeak(true)
|
|
RingPlayHelper.stopRingTone()
|
|
RingPlayHelper.stopRingTone()
|