aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-09-09 13:30:01 -0300
committerTorsten Grote <t@grobox.de>2020-09-09 13:30:01 -0300
commitf838c4613a6f345a4e81c2965b63dfa0626e3d1f (patch)
treef320d0e3ee7d55032c76e664ab71e6d1d607a942
parentcab40e31124b3a2438f56bee42e1dd31def6d8f5 (diff)
downloadtaler-android-f838c4613a6f345a4e81c2965b63dfa0626e3d1f.tar.gz
taler-android-f838c4613a6f345a4e81c2965b63dfa0626e3d1f.tar.bz2
taler-android-f838c4613a6f345a4e81c2965b63dfa0626e3d1f.zip
[wallet] Fix opening bank confirmation URL
Fixes #0006593
-rw-r--r--wallet/src/main/java/net/taler/wallet/transactions/TransactionWithdrawalFragment.kt3
1 files changed, 2 insertions, 1 deletions
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) }