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