diff options
author | Iván Ávalos <avalos@disroot.org> | 2024-03-26 12:33:07 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2024-04-01 09:37:07 -0300 |
commit | fc6994a6a4212a3d7694834ff4dfaf234abee615 (patch) | |
tree | 9de209a83a5d8d104a50af7c36eb7ec449c0ef02 /wallet/src/main/res | |
parent | f885557835769a68c1528e0e99986d5110c3e636 (diff) | |
download | taler-android-fc6994a6a4212a3d7694834ff4dfaf234abee615.tar.gz taler-android-fc6994a6a4212a3d7694834ff4dfaf234abee615.tar.bz2 taler-android-fc6994a6a4212a3d7694834ff4dfaf234abee615.zip |
[wallet] Refactor URI handling into separate fragment with loading screen
bug 0008618
Diffstat (limited to 'wallet/src/main/res')
-rw-r--r-- | wallet/src/main/res/navigation/nav_graph.xml | 63 | ||||
-rw-r--r-- | wallet/src/main/res/values/strings.xml | 2 |
2 files changed, 65 insertions, 0 deletions
diff --git a/wallet/src/main/res/navigation/nav_graph.xml b/wallet/src/main/res/navigation/nav_graph.xml index a968365..2fc6c48 100644 --- a/wallet/src/main/res/navigation/nav_graph.xml +++ b/wallet/src/main/res/navigation/nav_graph.xml @@ -34,6 +34,65 @@ </fragment> <fragment + android:id="@+id/handleUri" + android:name="net.taler.wallet.HandleUriFragment" + android:label="@string/handle_uri_title"> + <argument + android:name="uri" + app:argType="string" + app:nullable="false" /> + <argument + android:name="from" + app:argType="string" + app:nullable="false" /> + + <action + android:id="@+id/action_handleUri_to_receiveFunds" + app:destination="@id/receiveFunds" + app:popUpTo="@id/nav_main" /> + + <action + android:id="@+id/action_handleUri_to_sendFunds" + app:destination="@id/sendFunds" + app:popUpTo="@id/nav_main" /> + + <action + android:id="@+id/action_handleUri_to_promptWithdraw" + app:destination="@id/promptWithdraw" + app:popUpTo="@id/nav_main" /> + + <action + android:id="@+id/action_handleUri_to_manualWithdrawal" + app:destination="@id/nav_exchange_manual_withdrawal" + app:popUpTo="@id/nav_main" /> + + <action + android:id="@+id/action_handleUri_to_promptPayment" + app:destination="@id/promptPayment" + app:popUpTo="@id/nav_main" /> + + <action + android:id="@+id/action_handleUri_to_promptPullPayment" + app:destination="@id/promptPullPayment" + app:popUpTo="@id/nav_main" /> + + <action + android:id="@+id/action_handleUri_to_promptPushPayment" + app:destination="@id/promptPushPayment" + app:popUpTo="@id/nav_main" /> + + <action + android:id="@+id/action_handleUri_to_promptPayTemplate" + app:destination="@id/promptPayTemplate" + app:popUpTo="@id/nav_main" /> + + <action + android:id="@+id/action_handleUri_to_nav_payto_uri" + app:destination="@id/nav_payto_uri" + app:popUpTo="@id/nav_main" /> + </fragment> + + <fragment android:id="@+id/receiveFunds" android:name="net.taler.wallet.ReceiveFundsFragment" android:label="@string/transactions_receive_funds"> @@ -319,6 +378,10 @@ tools:layout="@layout/fragment_error" /> <action + android:id="@+id/action_global_handle_uri" + app:destination="@id/handleUri" /> + + <action android:id="@+id/action_global_receiveFunds" app:destination="@id/receiveFunds" /> diff --git a/wallet/src/main/res/values/strings.xml b/wallet/src/main/res/values/strings.xml index 9e3c3a6..64a0d7b 100644 --- a/wallet/src/main/res/values/strings.xml +++ b/wallet/src/main/res/values/strings.xml @@ -73,6 +73,8 @@ GNU Taler is immune against many types of fraud, such as phishing of credit card <string name="host_apdu_service_desc">Taler NFC Payments</string> + <string name="handle_uri_title">Loading action</string> + <string name="balances_title">Balances</string> <string name="amount_positive">+%s</string> <string name="amount_negative">-%s</string> |