From f838c4613a6f345a4e81c2965b63dfa0626e3d1f Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Wed, 9 Sep 2020 13:30:01 -0300 Subject: [wallet] Fix opening bank confirmation URL Fixes #0006593 --- .../net/taler/wallet/transactions/TransactionWithdrawalFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wallet/src/main') diff --git a/wallet/src/main/java/net/taler/wallet/transactions/TransactionWithdrawalFragment.kt b/wallet/src/main/java/net/taler/wallet/transactions/TransactionWithdrawalFragment.kt index 96782fd..8a45bec 100644 --- a/wallet/src/main/java/net/taler/wallet/transactions/TransactionWithdrawalFragment.kt +++ b/wallet/src/main/java/net/taler/wallet/transactions/TransactionWithdrawalFragment.kt @@ -17,6 +17,7 @@ package net.taler.wallet.transactions import android.content.Intent +import android.content.Intent.ACTION_VIEW import android.net.Uri import android.os.Bundle import android.view.LayoutInflater @@ -50,7 +51,7 @@ class TransactionWithdrawalFragment : TransactionDetailFragment() { if (t.pending && t.withdrawalDetails is WithdrawalDetails.TalerBankIntegrationApi && !t.confirmed && t.withdrawalDetails.bankConfirmationUrl != null ) { - val i = Intent().apply { + val i = Intent(ACTION_VIEW).apply { data = Uri.parse(t.withdrawalDetails.bankConfirmationUrl) } ui.confirmWithdrawalButton.setOnClickListener { startActivitySafe(i) } -- cgit v1.2.3