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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user