Fix desk dock getting stuck after unpairing.

Note: This is a workaround. The read problem is that
we are making a call to Bluez when it is not ready yet.
The interface has not been registered, so dbus call should fail.
We need to fix this properly.

Dr No: Eastham
Bug: 2317784
This commit is contained in:
Jaikumar Ganesh
2009-12-10 01:59:19 -08:00
parent 6e3ee10a99
commit b172cd5d23
2 changed files with 11 additions and 1 deletions

View File

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