summaryrefslogtreecommitdiffstats
path: root/java/direct_bt/tinyb
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-09-23 01:05:15 +0200
committerSven Gothel <[email protected]>2020-09-23 01:05:15 +0200
commit02909e574ad5b6900cddcc4c7f231257fe3124c3 (patch)
treed77a0c945d9033f7d797587a44555cc8c1aa59b6 /java/direct_bt/tinyb
parent9394da807db36d64014139aae824be85a9196aac (diff)
parentc7bac778e9cdda69c4baaa47c7bdd86b3e1bfea0 (diff)
Merge Secure Pairing API changele_secure_connections
Diffstat (limited to 'java/direct_bt/tinyb')
-rw-r--r--java/direct_bt/tinyb/DBTDevice.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/java/direct_bt/tinyb/DBTDevice.java b/java/direct_bt/tinyb/DBTDevice.java
index 793d542e..08484eba 100644
--- a/java/direct_bt/tinyb/DBTDevice.java
+++ b/java/direct_bt/tinyb/DBTDevice.java
@@ -345,22 +345,22 @@ public class DBTDevice extends DBTObject implements BluetoothDevice
private native byte pairImpl(final String passkey) throws BluetoothException;
@Override
- public final PairingMode[] getSupportedPairingModes() throws BluetoothException {
+ public final List<PairingMode> getSupportedPairingModes() throws BluetoothException {
final byte[] res0 = getSupportedPairingModesImpl();
- final PairingMode[] res1 = new PairingMode[res0.length];
+ final ArrayList<PairingMode> res1 = new ArrayList<PairingMode>(res0.length);
for(int i=0; i<res0.length; i++) {
- res1[i] = PairingMode.get(res0[i]);
+ res1.add( PairingMode.get(res0[i]) );
}
return res1;
}
private native byte[] getSupportedPairingModesImpl() throws BluetoothException;
@Override
- public final PairingMode[] getRequiredPairingModes() throws BluetoothException {
+ public final List<PairingMode> getRequiredPairingModes() throws BluetoothException {
final byte[] res0 = getRequiredPairingModesImpl();
- final PairingMode[] res1 = new PairingMode[res0.length];
+ final ArrayList<PairingMode> res1 = new ArrayList<PairingMode>(res0.length);
for(int i=0; i<res0.length; i++) {
- res1[i] = PairingMode.get(res0[i]);
+ res1.add( PairingMode.get(res0[i]) );
}
return res1;
}