Search in sources :

Example 1 with WhirlPoolLoaderDialog

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());
    }
}
Also used : WhirlPoolLoaderDialog(com.samourai.wallet.whirlpool.fragments.WhirlPoolLoaderDialog)

Aggregations

WhirlPoolLoaderDialog (com.samourai.wallet.whirlpool.fragments.WhirlPoolLoaderDialog)1