From 1c96a00685f48aaa7cbe1ea03b4f031089631e89 Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Wed, 24 Nov 2010 13:06:31 -0800 Subject: Fix some formatting issues. Review comments from a previous review. Change-Id: Ifa6136f9bc5590ffb6a777240ad1e6607b616ca6 --- core/java/android/bluetooth/BluetoothDeviceProfileState.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/bluetooth/BluetoothDeviceProfileState.java b/core/java/android/bluetooth/BluetoothDeviceProfileState.java index d1a6ed5fd573..3eadff915b4a 100644 --- a/core/java/android/bluetooth/BluetoothDeviceProfileState.java +++ b/core/java/android/bluetooth/BluetoothDeviceProfileState.java @@ -302,7 +302,7 @@ public final class BluetoothDeviceProfileState extends HierarchicalStateMachine // Don't auto connect to docks. break; } else { - if (mHeadsetService != null && + if (mHeadsetService != null && mHeadsetService.getPriority(mDevice) == BluetoothHeadset.PRIORITY_AUTO_CONNECT && mHeadsetService.getDevicesMatchingConnectionStates( @@ -1026,7 +1026,7 @@ public final class BluetoothDeviceProfileState extends HierarchicalStateMachine // This is again against spec. HFP incoming connections should be made // before A2DP, so we should not hit this case. But many devices // don't follow this. - if (mHeadsetService != null && + if (mHeadsetService != null && mHeadsetService.getPriority(mDevice) == BluetoothProfile.PRIORITY_ON) { Message msg = new Message(); msg.what = CONNECT_OTHER_PROFILES; -- cgit v1.2.3-59-g8ed1b