On bluetooth disable, delete all devices that are not bonded
Change-Id: If66d54eb4d953c4cc78a22a8b3e89e42bc16f5f4
This commit is contained in:
committed by
Matthew Xie
parent
f457e613d5
commit
2582e6ca94
@@ -141,7 +141,7 @@ final class CachedBluetoothDeviceManager {
|
||||
if (bluetoothState == BluetoothAdapter.STATE_TURNING_OFF) {
|
||||
for (int i = mCachedDevices.size() - 1; i >= 0; i--) {
|
||||
CachedBluetoothDevice cachedDevice = mCachedDevices.get(i);
|
||||
if (cachedDevice.getBondState() == BluetoothDevice.BOND_NONE) {
|
||||
if (cachedDevice.getBondState() != BluetoothDevice.BOND_BONDED) {
|
||||
cachedDevice.setVisible(false);
|
||||
mCachedDevices.remove(i);
|
||||
}
|
||||
|
Reference in New Issue
Block a user