summaryrefslogtreecommitdiff
path: root/src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java')
-rw-r--r--src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java b/src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java
index 9ae58b33d..c5e56b377 100644
--- a/src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java
+++ b/src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java
@@ -740,7 +740,9 @@ public class BluetoothDeviceManager {
}
public boolean isInbandRingingEnabled() {
- BluetoothDevice activeDevice = mBluetoothRouteManager.getBluetoothAudioConnectedDevice();
+ // Get the inband ringing enabled status of expected BT device to route call audio instead
+ // of using the address of currently connected device.
+ BluetoothDevice activeDevice = mBluetoothRouteManager.getMostRecentlyReportedActiveDevice();
Log.i(this, "isInbandRingingEnabled: activeDevice: " + activeDevice);
if (mBluetoothRouteManager.isCachedLeAudioDevice(activeDevice)) {
if (mBluetoothLeAudioService == null) {