summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth
diff options
context:
space:
mode:
authorRavi Nagarajan <nravi@broadcom.com>2012-05-29 17:13:23 +0530
committerMatthew Xie <mattx@google.com>2012-07-16 15:38:38 -0700
commit2582e6ca94e6cbb80a8bf2b3abcb83da5f7d3a09 (patch)
tree7138de1476901308e97c018663dbff79145cdb7d /src/com/android/settings/bluetooth
parentf457e613d5d91322e0c967fb801899d55e3db9e5 (diff)
downloadpackages_apps_settings-2582e6ca94e6cbb80a8bf2b3abcb83da5f7d3a09.zip
packages_apps_settings-2582e6ca94e6cbb80a8bf2b3abcb83da5f7d3a09.tar.gz
packages_apps_settings-2582e6ca94e6cbb80a8bf2b3abcb83da5f7d3a09.tar.bz2
On bluetooth disable, delete all devices that are not bonded
Change-Id: If66d54eb4d953c4cc78a22a8b3e89e42bc16f5f4
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r--src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java b/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java
index 4238215..06be3c4 100644
--- a/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java
+++ b/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java
@@ -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);
}