Merge "Fix Bluetooth OOB pairing not working for unseen devices" am: 3ef0315eb7
am: bd1a923cac
Change-Id: I378f55d65663a1628ca53c1e2a63b850aac94845
This commit is contained in:
@@ -268,16 +268,16 @@ public final class BluetoothEventManager {
|
||||
if (cachedDevice == null) {
|
||||
Log.w(TAG, "CachedBluetoothDevice for device " + device +
|
||||
" not found, calling readPairedDevices().");
|
||||
if (!readPairedDevices()) {
|
||||
Log.e(TAG, "Got bonding state changed for " + device +
|
||||
", but we have no record of that device.");
|
||||
return;
|
||||
if (readPairedDevices()) {
|
||||
cachedDevice = mDeviceManager.findDevice(device);
|
||||
}
|
||||
cachedDevice = mDeviceManager.findDevice(device);
|
||||
|
||||
if (cachedDevice == null) {
|
||||
Log.e(TAG, "Got bonding state changed for " + device +
|
||||
", but device not added in cache.");
|
||||
return;
|
||||
Log.w(TAG, "Got bonding state changed for " + device +
|
||||
", but we have no record of that device.");
|
||||
|
||||
cachedDevice = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, device);
|
||||
dispatchDeviceAdded(cachedDevice);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user