diff options
Diffstat (limited to 'java/BluetoothAdapter.java')
-rw-r--r-- | java/BluetoothAdapter.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/java/BluetoothAdapter.java b/java/BluetoothAdapter.java index 94fd1f76..7bd35c83 100644 --- a/java/BluetoothAdapter.java +++ b/java/BluetoothAdapter.java @@ -258,8 +258,12 @@ public class BluetoothAdapter extends BluetoothObject * @param rssi a rssi value * @param pathloss a pathloss value */ - public void setDiscoveryFilter(List<Integer> uuids, int rssi, int pathloss, TransportType transportType) { - setDiscoveryFilter(uuids, rssi, pathloss, transportType.ordinal()); + public void setDiscoveryFilter(List<UUID> uuids, int rssi, int pathloss, TransportType transportType) { + List<String> uuidsFmt = new ArrayList<>(uuids.size()); + for (UUID uuid : uuids) { + uuidsFmt.add(uuid.toString()); + } + setDiscoveryFilter(uuidsFmt, rssi, pathloss, transportType.ordinal()); } /** This method sets RSSI device discovery filter for the caller. When this method is called @@ -280,7 +284,7 @@ public class BluetoothAdapter extends BluetoothObject private native void delete(); - private native void setDiscoveryFilter(List<Integer> uuids, int rssi, int pathloss, int transportType); + private native void setDiscoveryFilter(List<String> uuids, int rssi, int pathloss, int transportType); private BluetoothAdapter(long instance) { |