From 7087388a0f9f876fdee688f732dcd5737fa6d08e Mon Sep 17 00:00:00 2001 From: SongFerngWang Date: Wed, 12 Oct 2022 22:34:22 +0800 Subject: [PATCH] [LE unicast] Using the pairDeviceByCsip API ag/20176285 changes the API flow. Bug: 253541065 Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceManagerTest local test and result is on bug (pass) Change-Id: I2354b464a93b3122b462dc9cc20556f621490d2a --- .../android/settings/bluetooth/BluetoothPairingRequest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/android/settings/bluetooth/BluetoothPairingRequest.java b/src/com/android/settings/bluetooth/BluetoothPairingRequest.java index d5de41a20f9..ed7a1fc9307 100644 --- a/src/com/android/settings/bluetooth/BluetoothPairingRequest.java +++ b/src/com/android/settings/bluetooth/BluetoothPairingRequest.java @@ -87,9 +87,7 @@ public final class BluetoothPairingRequest extends BroadcastReceiver { return; } - if (mBluetoothManager.getCachedDeviceManager().shouldPairByCsip(device, groupId)) { - device.createBond(BluetoothDevice.TRANSPORT_LE); - } + mBluetoothManager.getCachedDeviceManager().pairDeviceByCsip(device, groupId); } } }