use of com.samourai.wallet.whirlpool.fragments.WhirlPoolLoaderDialog in project samourai-wallet-android by Samourai-Wallet.
the class WhirlpoolMain method startWhirlpool.
private void startWhirlpool() {
if (AndroidWhirlpoolWalletService.getInstance().listenConnectionStatus().getValue() == AndroidWhirlpoolWalletService.ConnectionStates.CONNECTED && WhirlpoolNotificationService.isRunning(getApplicationContext())) {
validateIntentAndStartNewPool();
} else {
WhirlPoolLoaderDialog whirlPoolLoaderDialog = new WhirlPoolLoaderDialog();
// After successful whirlpool connection @validateIntentAndStartNewPool method will invoked to validate preselected utxo's
whirlPoolLoaderDialog.setOnInitComplete(this::validateIntentAndStartNewPool);
whirlPoolLoaderDialog.show(getSupportFragmentManager(), whirlPoolLoaderDialog.getTag());
}
}
Aggregations