From 5ea77c26eb5ab428479c34989b1d2148ff88ce46 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 30 Aug 2020 15:24:52 +0200 Subject: [PATCH] Bug that caused app crash fixed. --- .idea/codeStyles/Project.xml | 16 ++++++++++++++++ app/src/main/res/navigation/my_nav.xml | 9 +++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 88ea3aa..3cc336b 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,6 +1,22 @@ + + diff --git a/app/src/main/res/navigation/my_nav.xml b/app/src/main/res/navigation/my_nav.xml index e8b6a98..bd6e760 100644 --- a/app/src/main/res/navigation/my_nav.xml +++ b/app/src/main/res/navigation/my_nav.xml @@ -34,7 +34,10 @@ android:id="@+id/action_addFragment_to_listFragment" app:destination="@id/listFragment" app:enterAnim="@anim/from_left" - app:exitAnim="@anim/to_right" /> + app:exitAnim="@anim/to_right" + app:launchSingleTop="false" + app:popUpTo="@id/listFragment" + app:popUpToInclusive="true" /> + app:exitAnim="@anim/to_left" + app:popUpTo="@id/listFragment" + app:popUpToInclusive="true" />