-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ Copyright © 2019 Damyan Ivanov.
+<?xml version="1.0" encoding="utf-8"?><!--
+ ~ Copyright © 2021 Damyan Ivanov.
~ This file is part of MoLe.
~ MoLe is free software: you can distribute it and/or modify it
~ under the term of the GNU General Public License as published by
<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/new_transaction_navigation"
- app:startDestination="@id/newTransactionFragment">
+ app:startDestination="@id/newTransactionFragment"
+ >
<fragment
android:id="@+id/newTransactionFragment"
- android:name="net.ktnx.mobileledger.ui.activity.NewTransactionFragment"
- android:label="NewTransactionFragment" >
+ android:name="net.ktnx.mobileledger.ui.new_transaction.NewTransactionFragment"
+ android:label="NewTransactionFragment"
+ >
<action
android:id="@+id/action_newTransactionFragment_to_newTransactionSavingFragment"
app:destination="@id/newTransactionSavingFragment"
app:enterAnim="@anim/slide_in_up"
- app:exitAnim="@anim/slide_out_up" />
+ app:exitAnim="@anim/slide_out_up"
+ app:launchSingleTop="true"
+ app:popUpTo="@id/new_transaction_navigation"
+ app:popUpToInclusive="true"
+ />
<argument
android:name="error"
+ android:defaultValue="@null"
app:argType="string"
app:nullable="true"
- android:defaultValue="@null"/>
+ />
</fragment>
<fragment
android:id="@+id/newTransactionSavingFragment"
android:name="net.ktnx.mobileledger.ui.NewTransactionSavingFragment"
- android:label="fragment_new_transaction_saving" >
+ android:label="fragment_new_transaction_saving"
+ >
<action
android:id="@+id/action_newTransactionSavingFragment_Success"
app:destination="@id/newTransactionFragment"
app:enterAnim="@anim/slide_in_up"
app:exitAnim="@anim/slide_out_up"
+ app:launchSingleTop="true"
app:popExitAnim="@anim/slide_out_down"
+ app:popUpTo="@id/new_transaction_navigation"
+ app:popUpToInclusive="true"
/>
<action
android:id="@+id/action_newTransactionSavingFragment_Failure"
app:destination="@id/newTransactionFragment"
app:enterAnim="@anim/slide_in_down"
app:exitAnim="@anim/slide_out_down"
+ app:launchSingleTop="true"
app:popExitAnim="@anim/slide_out_up"
+ app:popUpTo="@id/new_transaction_navigation"
+ app:popUpToInclusive="true"
/>
</fragment>
</navigation>
\ No newline at end of file