1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

BluetoothMidiDevicePairingDialogue: Improve formatting

This commit is contained in:
reuk 2025-04-01 20:31:42 +01:00
parent 2e5ecceea8
commit 71b1d001de
No known key found for this signature in database
2 changed files with 30 additions and 17 deletions

View file

@ -108,9 +108,9 @@ public class JuceMidiSupport
appContext = contextToUse;
}
public String[] getMidiBluetoothAddresses ()
public List<String> getMidiBluetoothAddresses()
{
return bluetoothMidiDevices.toArray (new String[bluetoothMidiDevices.size ()]);
return new ArrayList<String> (bluetoothMidiDevices);
}
public String getHumanReadableStringForBluetoothAddress (String address)
@ -216,7 +216,7 @@ public class JuceMidiSupport
private BluetoothLeScanner scanner;
private static final String bluetoothLEMidiServiceUUID = "03B80E5A-EDE8-4B33-A751-6CE34EC4C700";
private HashSet<String> bluetoothMidiDevices = new HashSet<String> ();
private HashSet<String> bluetoothMidiDevices = new HashSet<>();
private Context appContext = null;
}