commit 5a412791b77ed87abf01debe9d18fd18a1c504df parent 26015ca8fb06d031904adcbc356a81155f202b41 Author: Iván Ávalos <avalos@disroot.org> Date: Wed, 23 Apr 2025 19:25:02 +0200 [wallet] make "Retry" not a fake action Diffstat:
| M | wallet/src/main/java/net/taler/wallet/HandleUriFragment.kt | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/wallet/src/main/java/net/taler/wallet/HandleUriFragment.kt b/wallet/src/main/java/net/taler/wallet/HandleUriFragment.kt @@ -96,9 +96,10 @@ class HandleUriFragment: Fragment() { } private fun processTalerUri() { - // FIXME: pressing `retry` is basically a fake action when offline, - // may be useful in the future if Taler action errors properly allow retrying. - if (processing || model.networkManager.networkStatus.value == false) return + // TODO: pressing "Retry" button manually will not stop the + // user from losing the QR code in case the action fails. + // (i.e. "Retry" can only be pressed once) + if (processing) return processing = true val uri = uri.toUri()