From ef66ca1a01cb162792f24be5e9d851c6101f945c Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 16 Aug 2020 15:50:14 +0300 Subject: [PATCH] new transaction: fix saving progress in/out navigation somewhat broken after following the recommendations about thefragment container. the navigation was saved so after saving 'Back' returned to the 'saving progress' fragment instead of closing the activity --- .../res/navigation/new_transaction_navigation.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/navigation/new_transaction_navigation.xml b/app/src/main/res/navigation/new_transaction_navigation.xml index b68760c2..6f1fe29c 100644 --- a/app/src/main/res/navigation/new_transaction_navigation.xml +++ b/app/src/main/res/navigation/new_transaction_navigation.xml @@ -30,7 +30,11 @@ 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" + /> \ No newline at end of file -- 2.39.2