Add a public method to obtain the currently selected node: getSelectedNode()

This commit is contained in:
Severiano Jaramillo 2019-01-10 14:20:31 -06:00
parent cc28f55dd5
commit f4be0fa596

View file

@ -776,6 +776,12 @@ public class NetworkService extends Service {
return nodeProvider.getSortedNodes(); 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. * Returns an observable that will notify its observers about node latency updates.
* @return Observer of {@link FullNode} instances. * @return Observer of {@link FullNode} instances.