From b82e9fb7e7dd1f7dabbbfdbaaef3c81ac2b531c0 Mon Sep 17 00:00:00 2001
From: Taras Smakula <tarassmakula@gmail.com>
Date: Wed, 28 Feb 2024 13:11:43 +0200
Subject: [PATCH] Cleanup password mode args

---
 .../src/main/res/navigation/uia_nav_graph.xml | 89 +++----------------
 1 file changed, 10 insertions(+), 79 deletions(-)

diff --git a/auth/src/main/res/navigation/uia_nav_graph.xml b/auth/src/main/res/navigation/uia_nav_graph.xml
index 07b0effec..0f1be5a40 100644
--- a/auth/src/main/res/navigation/uia_nav_graph.xml
+++ b/auth/src/main/res/navigation/uia_nav_graph.xml
@@ -27,27 +27,12 @@
 
     <action
         android:id="@+id/to_passwordSignup"
-        app:destination="@id/passwordFragment">
-
-        <argument
-            android:name="mode"
-            android:defaultValue="SignupPasswordStage"
-            app:argType="org.futo.circles.auth.model.PasswordModeArg"
-            app:nullable="false" />
-
-    </action>
+        app:destination="@id/passwordFragment" />
 
     <action
         android:id="@+id/to_bsspekeSignup"
-        app:destination="@id/passwordFragment">
+        app:destination="@id/passwordFragment" />
 
-        <argument
-            android:name="mode"
-            android:defaultValue="SignupBsSpekeStage"
-            app:argType="org.futo.circles.auth.model.PasswordModeArg"
-            app:nullable="false" />
-
-    </action>
 
     <action
         android:id="@+id/to_acceptTerms"
@@ -59,75 +44,28 @@
 
     <action
         android:id="@+id/to_direct_login"
-        app:destination="@id/passwordFragment">
-
-        <argument
-            android:name="mode"
-            android:defaultValue="LoginDirect"
-            app:argType="org.futo.circles.auth.model.PasswordModeArg"
-            app:nullable="false" />
-
-    </action>
+        app:destination="@id/passwordFragment" />
 
     <action
         android:id="@+id/to_password"
-        app:destination="@id/passwordFragment">
-
-        <argument
-            android:name="mode"
-            android:defaultValue="LoginPasswordStage"
-            app:argType="org.futo.circles.auth.model.PasswordModeArg"
-            app:nullable="false" />
+        app:destination="@id/passwordFragment" />
 
-    </action>
 
     <action
         android:id="@+id/to_bsspeke"
-        app:destination="@id/passwordFragment">
-
-        <argument
-            android:name="mode"
-            android:defaultValue="LoginBsSpekeStage"
-            app:argType="org.futo.circles.auth.model.PasswordModeArg"
-            app:nullable="false" />
-
-    </action>
+        app:destination="@id/passwordFragment" />
 
     <action
         android:id="@+id/to_reAuthPassword"
-        app:destination="@id/passwordFragment">
-
-        <argument
-            android:name="mode"
-            android:defaultValue="ReAuthPassword"
-            app:argType="org.futo.circles.auth.model.PasswordModeArg"
-            app:nullable="false" />
-
-    </action>
+        app:destination="@id/passwordFragment" />
 
     <action
         android:id="@+id/to_reAuthBsSpekeLogin"
-        app:destination="@id/passwordFragment">
-
-        <argument
-            android:name="mode"
-            android:defaultValue="ReAuthBsSpekeLogin"
-            app:argType="org.futo.circles.auth.model.PasswordModeArg"
-            app:nullable="false" />
-
-    </action>
+        app:destination="@id/passwordFragment" />
 
     <action
         android:id="@+id/to_reAuthBsSpekeSignup"
-        app:destination="@id/passwordFragment">
-
-        <argument
-            android:name="mode"
-            android:defaultValue="ReAuthBsSpekeSignup"
-            app:argType="org.futo.circles.auth.model.PasswordModeArg"
-            app:nullable="false" />
-
-    </action>
+        app:destination="@id/passwordFragment" />
 
 
     <fragment
@@ -143,7 +81,7 @@
     <fragment
         android:id="@+id/acceptTermsFragment"
         android:name="org.futo.circles.auth.feature.sign_up.terms.AcceptTermsFragment"
-        tools:layout="@layout/fragment_accept_terms"/>
+        tools:layout="@layout/fragment_accept_terms" />
 
     <fragment
         android:id="@+id/subscriptionStageFragment"
@@ -152,14 +90,7 @@
     <fragment
         android:id="@+id/passwordFragment"
         android:name="org.futo.circles.auth.feature.sign_up.password.PasswordFragment"
-        tools:layout="@layout/fragment_password">
-
-        <argument
-            android:name="mode"
-            app:argType="org.futo.circles.auth.model.PasswordModeArg"
-            app:nullable="false" />
-
-    </fragment>
+        tools:layout="@layout/fragment_password" />
 
     <fragment
         android:id="@+id/usernameFragment"
-- 
GitLab