diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java index 260cd8e5743..bb21bd709dc 100644 --- a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java +++ b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java @@ -383,6 +383,12 @@ public class CachedBluetoothDevice implements Comparable connectWithoutResettingTimer(); } + /*package*/ void onBondingDockConnect() { + // Don't connect just set the timer. + // TODO(): Fix the actual problem + mConnectAttempted = SystemClock.elapsedRealtime(); + } + private void connectWithoutResettingTimer() { // Try to initialize the profiles if there were not. if (mProfiles.size() == 0) { diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java b/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java index c3dfc208bf8..7906d79fc63 100644 --- a/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java +++ b/src/com/android/settings/bluetooth/CachedBluetoothDeviceManager.java @@ -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(); + } } }