diff options
| -rwxr-xr-x | packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManager.java | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManager.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManager.java index abd4e294fecb..9217338884d0 100755 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManager.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManager.java @@ -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);              }          } |