Auto connection/disconnection related changes
Remove ACTION_CONNECT_OTHER_PROFILES as it is no longer used
Allow only PRIORITY_ON and PRIORTY_OFF as priority params for SetPriority()
API in BluetoothA2DP and BluetoothHeadset
BluetoothPBAP: Pass on proxy object as part of Service Connected callback
Change-Id: Ida00fc2b7d1dcb91b01f7ddd2cea482367a3b334
diff --git a/core/java/android/bluetooth/BluetoothA2dp.java b/core/java/android/bluetooth/BluetoothA2dp.java
index 1b415e5..6e2278d 100755
--- a/core/java/android/bluetooth/BluetoothA2dp.java
+++ b/core/java/android/bluetooth/BluetoothA2dp.java
@@ -337,9 +337,7 @@
if (mService != null && isEnabled()
&& isValidDevice(device)) {
if (priority != BluetoothProfile.PRIORITY_OFF &&
- priority != BluetoothProfile.PRIORITY_ON &&
- priority != BluetoothProfile.PRIORITY_UNDEFINED &&
- priority != BluetoothProfile.PRIORITY_AUTO_CONNECT) {
+ priority != BluetoothProfile.PRIORITY_ON){
return false;
}
try {