use of run.wallet.iota.api.requests.GetNeighborsRequest in project run-wallet-android by runplay.
the class NetworkNeighborsFragment method getNeighbors.
private void getNeighbors(boolean force) {
if (Store.getNeighbours() == null || force) {
GetNeighborsRequest nar = new GetNeighborsRequest();
TaskManager rt = new TaskManager(getActivity());
rt.startNewRequestTask(nar);
if (!swipeRefreshLayout.isRefreshing()) {
swipeRefreshLayout.post(() -> swipeRefreshLayout.setRefreshing(true));
}
}
}
Aggregations