Merge commit '3681cfb83b0e9d02c71330fda25edaaf17bb0ba6' into eclair-mr2-plus-aosp * commit '3681cfb83b0e9d02c71330fda25edaaf17bb0ba6': Fix desk dock getting stuck after unpairing.
This commit is contained in:
@@ -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) {
|
||||||
|
@@ -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
|
||||||
|
if (!device.isBluetoothDock()) {
|
||||||
cachedDevice.connect();
|
cachedDevice.connect();
|
||||||
|
} else {
|
||||||
|
cachedDevice.onBondingDockConnect();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user