aboutsummaryrefslogtreecommitdiff
path: root/wallet/src/main/res/navigation/nav_graph.xml
blob: e1367ae092f6cad42f0495a8de11f0e2f33bff74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?xml version="1.0" encoding="utf-8"?><!--
  ~ This file is part of GNU Taler
  ~ (C) 2020 Taler Systems S.A.
  ~
  ~ GNU Taler is free software; you can redistribute it and/or modify it under the
  ~ terms of the GNU General Public License as published by the Free Software
  ~ Foundation; either version 3, or (at your option) any later version.
  ~
  ~ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
  ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  ~ A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License along with
  ~ GNU Taler; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
  -->

<navigation xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/nav_graph"
        app:startDestination="@id/showBalance"
        tools:ignore="UnusedNavigation">

    <fragment
            android:id="@+id/showBalance"
            android:name="net.taler.wallet.BalanceFragment"
            android:label="@string/balances_title"
            tools:layout="@layout/fragment_show_balance">
        <action
                android:id="@+id/action_showBalance_to_promptPayment"
                app:destination="@id/promptPayment" />
        <action
                android:id="@+id/action_showBalance_to_promptWithdraw"
                app:destination="@id/promptWithdraw" />
    </fragment>
    <fragment
            android:id="@+id/promptPayment"
            android:name="net.taler.wallet.payment.PromptPaymentFragment"
            android:label="Review Payment"
            tools:layout="@layout/fragment_prompt_payment">
        <action
                android:id="@+id/action_promptPayment_to_paymentSuccessful"
                app:destination="@id/paymentSuccessful"
                app:popUpTo="@id/showBalance" />
        <action
                android:id="@+id/action_promptPayment_to_alreadyPaid"
                app:destination="@id/alreadyPaid"
                app:popUpTo="@id/showBalance" />
    </fragment>
    <fragment
            android:id="@+id/paymentSuccessful"
            android:name="net.taler.wallet.payment.PaymentSuccessfulFragment"
            android:label="Payment Successful"
            tools:layout="@layout/fragment_payment_successful" />
    <fragment
            android:id="@+id/settings"
            android:name="net.taler.wallet.Settings"
            android:label="Settings"
            tools:layout="@layout/fragment_settings" />
    <fragment
            android:id="@+id/walletHistory"
            android:name="net.taler.wallet.history.HistoryFragment"
            android:label="@string/history_title"
            tools:layout="@layout/fragment_show_history" />
    <fragment
            android:id="@+id/alreadyPaid"
            android:name="net.taler.wallet.payment.AlreadyPaidFragment"
            android:label="Already Paid"
            tools:layout="@layout/fragment_already_paid" />

    <fragment
            android:id="@+id/promptWithdraw"
            android:name="net.taler.wallet.withdraw.PromptWithdrawFragment"
            android:label="@string/nav_prompt_withdraw"
            tools:layout="@layout/fragment_prompt_withdraw">
        <action
                android:id="@+id/action_promptWithdraw_to_withdrawSuccessful"
                app:destination="@id/withdrawSuccessful"
                app:popUpTo="@id/showBalance" />
        <action
                android:id="@+id/action_promptWithdraw_to_reviewExchangeTOS"
                app:destination="@id/reviewExchangeTOS"
                app:popUpTo="@id/showBalance" />
        <action
                android:id="@+id/action_promptWithdraw_to_errorFragment"
                app:destination="@id/errorFragment"
                app:popUpTo="@id/showBalance" />
    </fragment>

    <fragment
            android:id="@+id/withdrawSuccessful"
            android:name="net.taler.wallet.withdraw.WithdrawSuccessfulFragment"
            android:label="Withdrawal Confirmed"
            tools:layout="@layout/fragment_withdraw_successful" />
    <fragment
            android:id="@+id/reviewExchangeTOS"
            android:name="net.taler.wallet.withdraw.ReviewExchangeTosFragment"
            android:label="@string/nav_exchange_tos"
            tools:layout="@layout/fragment_review_exchange_tos">
        <action
                android:id="@+id/action_reviewExchangeTOS_to_promptWithdraw"
                app:destination="@id/promptWithdraw"
                app:popUpTo="@id/showBalance" />
    </fragment>

    <fragment
            android:id="@+id/nav_pending_operations"
            android:name="net.taler.wallet.pending.PendingOperationsFragment"
            android:label="Pending Operations"
            tools:layout="@layout/fragment_pending_operations" />
    <fragment
            android:id="@+id/errorFragment"
            android:name="net.taler.wallet.withdraw.ErrorFragment"
            android:label="@string/nav_error"
            tools:layout="@layout/fragment_error" />

    <action
            android:id="@+id/action_global_promptPayment"
            app:destination="@id/promptPayment" />

    <action
            android:id="@+id/action_global_pending_operations"
            app:destination="@id/nav_pending_operations" />

</navigation>