summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCNSS_WLAN Service <cnssbldsw@qualcomm.com>2022-02-23 23:50:42 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2022-02-23 23:50:42 -0800
commitb942c1fda135b29dc8673c08024307eb8558684c (patch)
tree927ca5ed11217d94b9252fed5863b5e7d6cc6b9c
parentc1ffb5ae4ef93f459460a0b60e79e909e0b24c89 (diff)
parent79324c89e17102168f5efcce660a46399ef34495 (diff)
Merge "HFP: Fix setActiveDevice during dial, redial and VR" into bt-sys.lnx.12.0
-rw-r--r--src/com/android/bluetooth/hfp/HeadsetService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/bluetooth/hfp/HeadsetService.java b/src/com/android/bluetooth/hfp/HeadsetService.java
index a7bc8923a..9f71b9069 100644
--- a/src/com/android/bluetooth/hfp/HeadsetService.java
+++ b/src/com/android/bluetooth/hfp/HeadsetService.java
@@ -1815,8 +1815,9 @@ public class HeadsetService extends ProfileService {
ActiveDeviceManagerServiceIntf.get();
/*Precautionary Change: Force Active Device Manager
* to always return false as same as Media Audio*/
- return mActiveDeviceManager.setActiveDevice(device,
+ mActiveDeviceManager.setActiveDevice(device,
ApmConstIntf.AudioFeatures.CALL_AUDIO, false);
+ return true;
} else {
int ret = setActiveDeviceHF(device);
if (ret == ActiveDeviceManagerServiceIntf.SHO_FAILED) {