diff options
author | Sebastian <sebasjm@gmail.com> | 2021-09-17 00:46:33 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-09-17 09:10:16 -0300 |
commit | b783156eadfeb2b3e3b28fd6aabf17285930306d (patch) | |
tree | ba241a5187ed1ec03c71cde9a8595661cdd58d21 | |
parent | b663081104dc38df462c30d7dfc90e435ef3cf6c (diff) | |
download | taler-android-b783156eadfeb2b3e3b28fd6aabf17285930306d.tar.gz taler-android-b783156eadfeb2b3e3b28fd6aabf17285930306d.tar.bz2 taler-android-b783156eadfeb2b3e3b28fd6aabf17285930306d.zip |
add support for wallet actions over http (not secured)
-rw-r--r-- | wallet/src/main/java/net/taler/wallet/MainActivity.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/MainActivity.kt b/wallet/src/main/java/net/taler/wallet/MainActivity.kt index ca53de3..09c26a8 100644 --- a/wallet/src/main/java/net/taler/wallet/MainActivity.kt +++ b/wallet/src/main/java/net/taler/wallet/MainActivity.kt @@ -151,18 +151,18 @@ class MainActivity : AppCompatActivity(), OnNavigationItemSelectedListener, connectToWifi(this, uri.fragment!!) } when { - url.lowercase(ROOT).startsWith("taler://pay/") -> { + url.lowercase(ROOT).startsWith("taler://pay/") || url.lowercase(ROOT).startsWith("taler+http://pay/") -> { Log.v(TAG, "navigating!") nav.navigate(R.id.action_nav_main_to_promptPayment) model.paymentManager.preparePay(url) } - url.lowercase(ROOT).startsWith("taler://withdraw/") -> { + url.lowercase(ROOT).startsWith("taler://withdraw/") || url.lowercase(ROOT).startsWith("taler+http://withdraw/") -> { Log.v(TAG, "navigating!") // there's more than one entry point, so use global action nav.navigate(R.id.action_global_promptWithdraw) model.withdrawManager.getWithdrawalDetails(url) } - url.lowercase(ROOT).startsWith("taler://refund/") -> { + url.lowercase(ROOT).startsWith("taler://refund/") || url.lowercase(ROOT).startsWith("taler+http://refund/") -> { model.showProgressBar.value = true model.refundManager.refund(url).observe(this, Observer(::onRefundResponse)) } |