Merge "Don't remove bonding device from cached device list during inquiry"
am: d5410ca51b
Change-Id: Ibef0191ee1863e08ab73226d9e27cbdfa54face2
This commit is contained in:
@@ -118,7 +118,7 @@ public class CachedBluetoothDeviceManager {
|
|||||||
public synchronized void clearNonBondedDevices() {
|
public synchronized void clearNonBondedDevices() {
|
||||||
for (int i = mCachedDevices.size() - 1; i >= 0; i--) {
|
for (int i = mCachedDevices.size() - 1; i >= 0; i--) {
|
||||||
CachedBluetoothDevice cachedDevice = mCachedDevices.get(i);
|
CachedBluetoothDevice cachedDevice = mCachedDevices.get(i);
|
||||||
if (cachedDevice.getBondState() != BluetoothDevice.BOND_BONDED) {
|
if (cachedDevice.getBondState() == BluetoothDevice.BOND_NONE) {
|
||||||
mCachedDevices.remove(i);
|
mCachedDevices.remove(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user