diff options
author | Michael Chan <mchan@android.com> | 2009-09-30 12:18:51 -0700 |
---|---|---|
committer | Michael Chan <mchan@android.com> | 2009-09-30 12:34:32 -0700 |
commit | eaf13a2c154a0c7bf7559b45d33fb589b5bcf3d4 (patch) | |
tree | 72461b0d2aee614c1b8571c39b9d0138d41e734a /src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java | |
parent | cabb147ce57bdcbb6baa08686415ce03f97028d7 (diff) | |
download | packages_apps_settings-eaf13a2c154a0c7bf7559b45d33fb589b5bcf3d4.zip packages_apps_settings-eaf13a2c154a0c7bf7559b45d33fb589b5bcf3d4.tar.gz packages_apps_settings-eaf13a2c154a0c7bf7559b45d33fb589b5bcf3d4.tar.bz2 |
b/2154576 Fixed the problem were some BT profiles were not connected when first UUID notification of many didn't have all the UUIDs
Reset connect timer event if profile was non-empty.
Clear profiles after unpair
mConnectAttemptedWithoutUuid
Change-Id: I5eab1270a755c6c87eb5be13a2f43dbbcd9a2f88
Diffstat (limited to 'src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java')
-rw-r--r-- | src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java b/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java index b7cea23..a7f44ec 100644 --- a/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java +++ b/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java @@ -176,7 +176,7 @@ public class CachedBluetoothDeviceManager { return; } - cachedDevice.refresh(); + cachedDevice.onBondingStateChanged(bondState); if (bondState == BluetoothDevice.BOND_BONDED) { // Auto-connect after pairing @@ -185,13 +185,13 @@ public class CachedBluetoothDeviceManager { } /** - * Called when there is a bonding error. + * Called when we have reached the un-bond state. * * @param device The remote device. * @param reason The reason, one of the error reasons from * BluetoothDevice.UNBOND_REASON_* */ - public synchronized void onBondingError(BluetoothDevice device, int reason) { + public synchronized void showUnbondMessage(BluetoothDevice device, int reason) { int errorMsg; switch(reason) { @@ -214,7 +214,7 @@ public class CachedBluetoothDeviceManager { mLocalManager.showError(device, R.string.bluetooth_error_title, errorMsg); break; default: - Log.w(TAG, "onBondingError: Not displaying any error message for reason:" + reason); + Log.w(TAG, "showUnbondMessage: Not displaying any message for reason:" + reason); break; } } |