Merge "Don't remove bonding device from cached device list during inquiry" am: d5410ca51b

am: ca4e402e9b

Change-Id: Ieac7271cf0d1aaa75f3472685e745b55e006ba67
This commit is contained in:
Venkata Jagadeesh
2017-12-06 03:31:08 +00:00
committed by android-build-merger

View File

@@ -118,7 +118,7 @@ public class CachedBluetoothDeviceManager {
public synchronized void clearNonBondedDevices() {
for (int i = mCachedDevices.size() - 1; i >= 0; i--) {
CachedBluetoothDevice cachedDevice = mCachedDevices.get(i);
if (cachedDevice.getBondState() != BluetoothDevice.BOND_BONDED) {
if (cachedDevice.getBondState() == BluetoothDevice.BOND_NONE) {
mCachedDevices.remove(i);
}
}