am 613549a6: Merge change I2c3621d1 into eclair

Merge commit '613549a622eac8278c9f81a1df83484c256652bf' into eclair-mr2

* commit '613549a622eac8278c9f81a1df83484c256652bf':
  Fix desk dock getting stuck after unpairing.
This commit is contained in:
Jaikumar Ganesh
2009-12-10 17:59:14 -08:00
committed by Android Git Automerger
2 changed files with 11 additions and 1 deletions

View File

@@ -383,6 +383,12 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
connectWithoutResettingTimer(); connectWithoutResettingTimer();
} }
/*package*/ void onBondingDockConnect() {
// Don't connect just set the timer.
// TODO(): Fix the actual problem
mConnectAttempted = SystemClock.elapsedRealtime();
}
private void connectWithoutResettingTimer() { private void connectWithoutResettingTimer() {
// Try to initialize the profiles if there were not. // Try to initialize the profiles if there were not.
if (mProfiles.size() == 0) { if (mProfiles.size() == 0) {

View File

@@ -186,7 +186,11 @@ public class CachedBluetoothDeviceManager {
if (bondState == BluetoothDevice.BOND_BONDED) { if (bondState == BluetoothDevice.BOND_BONDED) {
// Auto-connect after pairing // Auto-connect after pairing
cachedDevice.connect(); if (!device.isBluetoothDock()) {
cachedDevice.connect();
} else {
cachedDevice.onBondingDockConnect();
}
} }
} }