[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-android] 02/03: [wallet] Fix back navigation crash due to d
From: |
gnunet |
Subject: |
[taler-taler-android] 02/03: [wallet] Fix back navigation crash due to duplicated core instance |
Date: |
Wed, 27 Sep 2023 10:47:38 +0200 |
This is an automated email from the git hooks/post-receive script.
torsten-grote pushed a commit to branch master
in repository taler-android.
commit ba94f3a24dee901f66af5dd4768d081d77930ccf
Author: Torsten Grote <t@grobox.de>
AuthorDate: Wed Sep 27 10:43:11 2023 +0200
[wallet] Fix back navigation crash due to duplicated core instance
---
.../src/main/java/net/taler/wallet/payment/PayTemplateFragment.kt | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git
a/wallet/src/main/java/net/taler/wallet/payment/PayTemplateFragment.kt
b/wallet/src/main/java/net/taler/wallet/payment/PayTemplateFragment.kt
index 64cb2c1..e05d1bd 100644
--- a/wallet/src/main/java/net/taler/wallet/payment/PayTemplateFragment.kt
+++ b/wallet/src/main/java/net/taler/wallet/payment/PayTemplateFragment.kt
@@ -25,7 +25,6 @@ import androidx.compose.ui.platform.ComposeView
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.asFlow
-import androidx.navigation.NavOptions
import androidx.navigation.fragment.findNavController
import net.taler.common.Amount
import net.taler.common.showError
@@ -82,10 +81,7 @@ class PayTemplateFragment : Fragment() {
model.paymentManager.payStatus.observe(viewLifecycleOwner) { payStatus
->
when (payStatus) {
is PayStatus.Prepared -> {
- val navOptions = NavOptions.Builder()
- .setPopUpTo(R.id.nav_main, true)
- .build()
-
findNavController().navigate(R.id.action_promptPayTemplate_to_promptPayment,
null, navOptions)
+
findNavController().navigate(R.id.action_promptPayTemplate_to_promptPayment)
}
is PayStatus.Error -> {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.