From 0682c6b3d3f7cef22725f3db15916346fdc4529e Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Thu, 16 Apr 2020 13:37:45 -0300 Subject: [wallet] change main screen if there is only one currency If there is more than one currency, the screen shows a list of balances per currency like it used to. If there is only one currency, the main screen directly shows the list of transactions with the balance in the toolbar. --- wallet/src/main/res/navigation/nav_graph.xml | 50 ++++++++++++++++------------ 1 file changed, 28 insertions(+), 22 deletions(-) (limited to 'wallet/src/main/res/navigation') diff --git a/wallet/src/main/res/navigation/nav_graph.xml b/wallet/src/main/res/navigation/nav_graph.xml index ef0f48b..f8d515e 100644 --- a/wallet/src/main/res/navigation/nav_graph.xml +++ b/wallet/src/main/res/navigation/nav_graph.xml @@ -18,21 +18,24 @@ 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"> + app:startDestination="@id/nav_main"> + tools:layout="@layout/fragment_balances"> + + + app:popUpTo="@id/nav_main" /> + app:popUpTo="@id/nav_main" /> + + android:label="@string/menu_settings" /> - - + tools:layout="@layout/fragment_transactions" /> + app:popUpTo="@id/nav_main" /> + app:popUpTo="@id/nav_main" /> @@ -103,8 +103,9 @@ + + app:popUpTo="@id/nav_main" /> + - \ No newline at end of file + + + -- cgit v1.2.3