From 582f1f84bb0ad4315ce17826672298c68f1c3b38 Mon Sep 17 00:00:00 2001 From: Jake Hamby Date: Wed, 29 Sep 2010 15:06:42 -0700 Subject: [PATCH] Fix bug where car dock sometimes doesn't connect. Attempt to connect to car/desk dock after pairing completes. This fixes a bug where we didn't try to connect if we received the UUID change intent before the bonding state change intent. Change-Id: I7c12a4eb23d17d506e43a64bf2a3aa5241debcb9 --- .../android/settings/bluetooth/CachedBluetoothDevice.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java index 32f7ff320cd..88e343e4e3e 100644 --- a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java +++ b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java @@ -218,9 +218,9 @@ public class CachedBluetoothDevice implements Comparable } /*package*/ void onBondingDockConnect() { - // Don't connect just set the timer. - // TODO(): Fix the actual problem - mConnectAttempted = SystemClock.elapsedRealtime(); + // Attempt to connect if UUIDs are available. Otherwise, + // we will connect when the ACTION_UUID intent arrives. + connect(); } private void connectWithoutResettingTimer() {