mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 21:59:54 +01:00
Address review comments.
This commit is contained in:
@@ -73,6 +73,10 @@ abstract class BluetoothPlugin<SS> implements DuplexPlugin, EventListener {
|
|||||||
|
|
||||||
abstract void setEnabledByUs();
|
abstract void setEnabledByUs();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the local Bluetooth address, or null if no valid address can
|
||||||
|
* be found.
|
||||||
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
abstract String getBluetoothAddress();
|
abstract String getBluetoothAddress();
|
||||||
|
|
||||||
@@ -176,7 +180,8 @@ abstract class BluetoothPlugin<SS> implements DuplexPlugin, EventListener {
|
|||||||
|
|
||||||
private void updateProperties() {
|
private void updateProperties() {
|
||||||
TransportProperties p = callback.getLocalProperties();
|
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;
|
boolean changed = false;
|
||||||
if (address == null) {
|
if (address == null) {
|
||||||
address = getBluetoothAddress();
|
address = getBluetoothAddress();
|
||||||
|
|||||||
Reference in New Issue
Block a user