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
This commit is contained in:
Jake Hamby
2010-09-29 15:06:42 -07:00
parent 98289826e6
commit 582f1f84bb

View File

@@ -218,9 +218,9 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
}
/*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() {