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, 1 insertions, 3 deletions
diff --git a/src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java b/src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java
index 297fd7289..b19bf818f 100644
--- a/src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java
+++ b/src/com/android/server/telecom/bluetooth/BluetoothDeviceManager.java
@@ -711,9 +711,7 @@ public class BluetoothDeviceManager {
}
public boolean isInbandRingingEnabled() {
- // 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();
+ BluetoothDevice activeDevice = mBluetoothRouteManager.getBluetoothAudioConnectedDevice();
Log.i(this, "isInbandRingingEnabled: activeDevice: " + activeDevice);
if (mBluetoothRouteManager.isCachedLeAudioDevice(activeDevice)) {
if (mBluetoothLeAudioService == null) {