diff options
Diffstat (limited to 'wallet/src/main/res/navigation/nav_graph.xml')
-rw-r--r-- | wallet/src/main/res/navigation/nav_graph.xml | 195 |
1 files changed, 113 insertions, 82 deletions
diff --git a/wallet/src/main/res/navigation/nav_graph.xml b/wallet/src/main/res/navigation/nav_graph.xml index f1d189f..f6c90ab 100644 --- a/wallet/src/main/res/navigation/nav_graph.xml +++ b/wallet/src/main/res/navigation/nav_graph.xml @@ -34,12 +34,71 @@ </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"> <action - android:id="@+id/action_receiveFunds_to_nav_exchange_manual_withdrawal" - app:destination="@id/nav_exchange_manual_withdrawal" /> + android:id="@+id/action_receiveFunds_to_nav_prompt_withdraw" + app:destination="@id/promptWithdraw" /> <action android:id="@+id/action_receiveFunds_to_nav_peer_pull" app:destination="@id/nav_peer_pull" /> @@ -70,32 +129,17 @@ </fragment> <fragment - android:id="@+id/promptTip" - android:name="net.taler.wallet.tip.PromptTipFragment" - android:label="Review Tip" - tools:layout="@layout/fragment_prompt_tip"> - <action - android:id="@+id/action_promptTip_to_nav_main" - app:destination="@id/nav_main" - app:popUpTo="@id/nav_main" /> - <action - android:id="@+id/action_promptTip_to_alreadyAccepted" - app:destination="@id/alreadyAccepted" - app:popUpTo="@id/nav_main" /> - </fragment> - - <fragment android:id="@+id/promptPayment" android:name="net.taler.wallet.payment.PromptPaymentFragment" - android:label="Review Payment" + android:label="@string/payment_prompt_title" tools:layout="@layout/fragment_prompt_payment"> <action android:id="@+id/action_promptPayment_to_nav_main" app:destination="@id/nav_main" app:popUpTo="@id/nav_main" /> <action - android:id="@+id/action_promptPayment_to_alreadyPaid" - app:destination="@id/alreadyPaid" + android:id="@+id/action_promptPayment_to_nav_transactions_detail_payment" + app:destination="@id/nav_transactions_detail_payment" app:popUpTo="@id/nav_main" /> </fragment> @@ -106,9 +150,6 @@ <action android:id="@+id/action_nav_settings_to_nav_settings_exchanges" app:destination="@id/nav_settings_exchanges" /> - <action - android:id="@+id/action_nav_settings_to_nav_settings_backup" - app:destination="@id/nav_settings_backup" /> </fragment> <fragment @@ -168,11 +209,6 @@ </fragment> <fragment - android:id="@+id/nav_settings_backup" - android:name="net.taler.wallet.settings.BackupSettingsFragment" - android:label="@string/nav_settings_backup" /> - - <fragment android:id="@+id/nav_peer_pull" android:name="net.taler.wallet.peer.OutgoingPullFragment" android:label="@string/receive_peer_title"> @@ -181,6 +217,14 @@ android:defaultValue="@null" app:argType="string" app:nullable="true" /> + <action + android:id="@+id/action_nav_peer_pull_to_nav_main" + app:destination="@id/nav_main" + app:popUpTo="@id/nav_main" /> + <action + android:id="@+id/action_nav_peer_pull_to_nav_transactions_detail_peer" + app:destination="@id/nav_transactions_detail_peer" + app:popUpTo="@id/nav_main" /> </fragment> <fragment @@ -192,6 +236,14 @@ android:defaultValue="@null" app:argType="string" app:nullable="true" /> + <action + android:id="@+id/action_nav_peer_push_to_nav_main" + app:destination="@id/nav_main" + app:popUpTo="@id/nav_main" /> + <action + android:id="@+id/action_nav_peer_push_to_nav_transactions_detail_peer" + app:destination="@id/nav_transactions_detail_peer" + app:popUpTo="@id/nav_main" /> </fragment> <fragment @@ -215,6 +267,19 @@ </fragment> <fragment + android:id="@+id/promptPayTemplate" + android:name="net.taler.wallet.payment.PayTemplateFragment" + android:label="@string/payment_pay_template_title"> + <action + android:id="@+id/action_promptPayTemplate_to_promptPayment" + app:destination="@+id/promptPayment" + app:popUpTo="@id/nav_main" /> + <argument + android:name="uri" + app:argType="string" /> + </fragment> + + <fragment android:id="@+id/nav_transactions" android:name="net.taler.wallet.transactions.TransactionsFragment" android:label="@string/transactions_title" @@ -227,8 +292,7 @@ <fragment android:id="@+id/nav_transactions_detail_withdrawal" android:name="net.taler.wallet.transactions.TransactionWithdrawalFragment" - android:label="@string/transactions_detail_title" - tools:layout="@layout/fragment_transaction_withdrawal"> + android:label="@string/transactions_detail_title"> <action android:id="@+id/action_nav_transactions_detail_withdrawal_to_nav_exchange_manual_withdrawal_success" app:destination="@id/nav_exchange_manual_withdrawal_success" /> @@ -237,44 +301,37 @@ <fragment android:id="@+id/nav_transactions_detail_payment" android:name="net.taler.wallet.transactions.TransactionPaymentFragment" - android:label="@string/transactions_detail_title" - tools:layout="@layout/fragment_transaction_payment" /> + android:label="@string/transactions_detail_title" /> <fragment android:id="@+id/nav_transactions_detail_refund" android:name="net.taler.wallet.transactions.TransactionRefundFragment" - android:label="@string/transactions_detail_title" - tools:layout="@layout/fragment_transaction_payment" /> + android:label="@string/transactions_detail_title" /> <fragment android:id="@+id/nav_transactions_detail_refresh" android:name="net.taler.wallet.transactions.TransactionRefreshFragment" - android:label="@string/transactions_detail_title" - tools:layout="@layout/fragment_transaction_withdrawal" /> + android:label="@string/transactions_detail_title" /> <fragment android:id="@+id/nav_transactions_detail_deposit" android:name="net.taler.wallet.transactions.TransactionDepositFragment" - android:label="@string/transactions_detail_title" - tools:layout="@layout/fragment_transaction_withdrawal" /> + android:label="@string/transactions_detail_title" /> <fragment android:id="@+id/nav_transactions_detail_peer" android:name="net.taler.wallet.transactions.TransactionPeerFragment" - android:label="@string/transactions_detail_title" - tools:layout="@layout/fragment_transaction_payment" /> + android:label="@string/transactions_detail_title" /> <fragment - android:id="@+id/alreadyAccepted" - android:name="net.taler.wallet.tip.AlreadyAcceptedFragment" - android:label="@string/tip_already_accepted" - tools:layout="@layout/fragment_already_accepted" /> + android:id="@+id/nav_transactions_detail_loss" + android:name="net.taler.wallet.transactions.TransactionLossFragment" + android:label="@string/transactions_detail_title" /> <fragment - android:id="@+id/alreadyPaid" - android:name="net.taler.wallet.payment.AlreadyPaidFragment" - android:label="@string/payment_already_paid_title" - tools:layout="@layout/fragment_already_paid" /> + android:id="@+id/nav_transactions_detail_dummy" + android:name="net.taler.wallet.transactions.TransactionDummyFragment" + android:label="@string/transactions_detail_title" /> <fragment android:id="@+id/promptWithdraw" @@ -282,9 +339,6 @@ android:label="@string/nav_prompt_withdraw" tools:layout="@layout/fragment_prompt_withdraw"> <action - android:id="@+id/action_promptWithdraw_to_selectExchangeFragment" - app:destination="@id/selectExchangeFragment" /> - <action android:id="@+id/action_promptWithdraw_to_reviewExchangeTOS" app:destination="@id/reviewExchangeTOS" /> <action @@ -296,6 +350,10 @@ app:destination="@id/nav_exchange_manual_withdrawal_success" app:popUpTo="@id/nav_main" /> <action + android:id="@+id/action_promptWithdraw_to_nav_transactions_detail_withdrawal" + app:destination="@id/nav_transactions_detail_withdrawal" + app:popUpTo="@id/nav_main" /> + <action android:id="@+id/action_promptWithdraw_to_errorFragment" app:destination="@id/errorFragment" app:popUpTo="@id/nav_main" /> @@ -311,17 +369,6 @@ app:destination="@id/promptWithdraw" app:popUpTo="@id/nav_main" /> </fragment> - <fragment - android:id="@+id/selectExchangeFragment" - android:name="net.taler.wallet.exchanges.SelectExchangeFragment" - android:label="@string/nav_exchange_select" - tools:layout="@layout/fragment_exchange_list" /> - - <fragment - android:id="@+id/nav_pending_operations" - android:name="net.taler.wallet.pending.PendingOperationsFragment" - android:label="@string/pending_operations_title" - tools:layout="@layout/fragment_pending_operations" /> <fragment android:id="@+id/nav_uri_input" @@ -336,6 +383,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" /> @@ -344,30 +395,10 @@ app:destination="@id/sendFunds" /> <action - android:id="@+id/action_global_promptWithdraw" - app:destination="@id/promptWithdraw" /> - - <action android:id="@+id/action_global_promptPayment" app:destination="@id/promptPayment" /> <action - android:id="@+id/action_global_promptTip" - app:destination="@id/promptTip" /> - - <action - android:id="@+id/action_global_prompt_pull_payment" - app:destination="@id/promptPullPayment" /> - - <action - android:id="@+id/action_global_prompt_push_payment" - app:destination="@id/promptPushPayment" /> - - <action - android:id="@+id/action_global_pending_operations" - app:destination="@id/nav_pending_operations" /> - - <action android:id="@+id/action_nav_transactions_detail_withdrawal" app:destination="@id/nav_transactions_detail_withdrawal" /> |