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

am: d5410ca51b

Change-Id: Ibef0191ee1863e08ab73226d9e27cbdfa54face2
This commit is contained in:
Venkata Jagadeesh
2017-12-06 03:17:29 +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);
}
}