Issue 4364098: bluetooth SCO not working
AudioService does not need to unconditionally stop virtual calls when the audio mode is changed from normal. Only stop virtual calls that have been started from AudioService. Change-Id: I75992d3655661e5910536a62dc8a8e0256d835e8
This commit is contained in:
@ -1437,9 +1437,7 @@ public class AudioService extends IAudioService.Stub {
|
||||
if (mBluetoothHeadsetDevice != null) {
|
||||
if (mBluetoothHeadset != null) {
|
||||
if (!mBluetoothHeadset.stopVoiceRecognition(
|
||||
mBluetoothHeadsetDevice) ||
|
||||
!mBluetoothHeadset.stopScoUsingVirtualVoiceCall(
|
||||
mBluetoothHeadsetDevice)) {
|
||||
mBluetoothHeadsetDevice)) {
|
||||
sendMsg(mAudioHandler, MSG_BT_HEADSET_CNCT_FAILED, 0,
|
||||
SENDMSG_REPLACE, 0, 0, null, 0);
|
||||
}
|
||||
@ -1506,8 +1504,6 @@ public class AudioService extends IAudioService.Stub {
|
||||
break;
|
||||
case SCO_STATE_DEACTIVATE_EXT_REQ:
|
||||
status = mBluetoothHeadset.stopVoiceRecognition(
|
||||
mBluetoothHeadsetDevice) &&
|
||||
mBluetoothHeadset.stopScoUsingVirtualVoiceCall(
|
||||
mBluetoothHeadsetDevice);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user