Add a public method to obtain the currently selected node: getSelectedNode()
This commit is contained in:
parent
cc28f55dd5
commit
f4be0fa596
1 changed files with 6 additions and 0 deletions
|
@ -776,6 +776,12 @@ public class NetworkService extends Service {
|
|||
return nodeProvider.getSortedNodes();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the currently selected node
|
||||
*/
|
||||
public FullNode getSelectedNode() { return mSelectedNode; }
|
||||
|
||||
/**
|
||||
* Returns an observable that will notify its observers about node latency updates.
|
||||
* @return Observer of {@link FullNode} instances.
|
||||
|
|
Loading…
Reference in a new issue