use of run.wallet.iota.api.responses.NodeInfoResponse in project run-wallet-android by runplay.
the class WalletTransfersFragment method onFabClick.
@Override
public void onFabClick() {
NodeInfoResponse info = Store.getNodeInfo();
if (info == null) {
AppService.getNodeInfo(getActivity());
} else {
if (info.isSyncOk()) {
if (AppService.countTransferRunningTasks(Store.getCurrentSeed()) == 0) {
UiManager.openFragmentBackStack(getActivity(), SnTrFragment.class);
} else {
Snackbar.make(getActivity().findViewById(R.id.drawer_layout), R.string.messages_wait_for_transfer, Snackbar.LENGTH_LONG).show();
}
} else {
AppService.getNodeInfo(getActivity());
Snackbar.make(getActivity().findViewById(R.id.drawer_layout), R.string.messages_not_fully_synced_yet, Snackbar.LENGTH_LONG).show();
}
}
}
Aggregations