Skip to content
Snippets Groups Projects
Verified Commit a61cd013 authored by akwizgran's avatar akwizgran
Browse files

Address review comments.

parent 565452f7
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,10 @@ abstract class BluetoothPlugin<SS> 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<SS> 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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment