From 4a1f58705d4e1a2885a2e8667300432e924dd870 Mon Sep 17 00:00:00 2001 From: akwizgran Date: Thu, 22 Feb 2018 12:52:49 +0000 Subject: [PATCH] Address review comments. --- .../bramble/plugin/bluetooth/BluetoothPlugin.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothPlugin.java b/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothPlugin.java index 115b3437d..ce43261a4 100644 --- a/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothPlugin.java +++ b/bramble-core/src/main/java/org/briarproject/bramble/plugin/bluetooth/BluetoothPlugin.java @@ -73,6 +73,10 @@ abstract class BluetoothPlugin implements DuplexPlugin, EventListener { abstract void setEnabledByUs(); + /** + * Returns the local Bluetooth address, or null if no valid address can + * be found. + */ @Nullable abstract String getBluetoothAddress(); @@ -176,7 +180,8 @@ abstract class BluetoothPlugin implements DuplexPlugin, EventListener { private void updateProperties() { TransportProperties p = callback.getLocalProperties(); - String address = p.get(PROP_ADDRESS), uuid = p.get(PROP_UUID); + String address = p.get(PROP_ADDRESS); + String uuid = p.get(PROP_UUID); boolean changed = false; if (address == null) { address = getBluetoothAddress();