From d50ac2966edd9c58d8026a624fd795bf54311158 Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Thu, 6 Jan 2011 16:22:21 -0800 Subject: [PATCH] DO NOT MERGE: Remove auto connection on ACL connection. There is no need for this and causes problems with certian cars. Fixes bug: 3281016 Change-Id: Idb65bbd4c8573923ebf82195b828ae071cb20aef --- core/java/android/bluetooth/BluetoothDeviceProfileState.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/java/android/bluetooth/BluetoothDeviceProfileState.java b/core/java/android/bluetooth/BluetoothDeviceProfileState.java index 9be4c8f6f5851..954fde5596955 100644 --- a/core/java/android/bluetooth/BluetoothDeviceProfileState.java +++ b/core/java/android/bluetooth/BluetoothDeviceProfileState.java @@ -129,10 +129,6 @@ public final class BluetoothDeviceProfileState extends HierarchicalStateMachine newState == BluetoothA2dp.STATE_DISCONNECTED) { sendMessage(TRANSITION_TO_STABLE); } - } else if (action.equals(BluetoothDevice.ACTION_ACL_CONNECTED)) { - Message msg = new Message(); - msg.what = AUTO_CONNECT_PROFILES; - sendMessageDelayed(msg, AUTO_CONNECT_DELAY); } else if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED)) { // This is technically not needed, but we can get stuck sometimes. // For example, if incoming A2DP fails, we are not informed by Bluez