diff options
Diffstat (limited to 'Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpSinkFacade.java')
-rw-r--r-- | Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpSinkFacade.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpSinkFacade.java b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpSinkFacade.java index 26124bfe..c725464b 100644 --- a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpSinkFacade.java +++ b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothA2dpSinkFacade.java @@ -101,7 +101,7 @@ public class BluetoothA2dpSinkFacade extends RpcReceiver { mBluetoothAdapter.getBondedDevices(), deviceStr); Log.d("Changing priority of device " + device.getAlias() + " p: " + priority); - sA2dpSinkProfile.setPriority(device, priority); + sA2dpSinkProfile.setConnectionPolicy(device, priority); } /** @@ -114,11 +114,11 @@ public class BluetoothA2dpSinkFacade extends RpcReceiver { @RpcParameter(name = "device", description = "Mac address of a BT device.") String deviceStr) throws Exception { - if (sA2dpSinkProfile == null) return BluetoothProfile.PRIORITY_UNDEFINED; + if (sA2dpSinkProfile == null) return BluetoothProfile.CONNECTION_POLICY_UNKNOWN; BluetoothDevice device = BluetoothFacade.getDevice( mBluetoothAdapter.getBondedDevices(), deviceStr); - return sA2dpSinkProfile.getPriority(device); + return sA2dpSinkProfile.getConnectionPolicy(device); } /** |