Use eventbus to navigate from GoogleFragment

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-07-06 18:58:05 +05:30
parent 6ab3e4b40d
commit 4f6a838411
4 changed files with 68 additions and 75 deletions

View File

@@ -69,7 +69,11 @@
android:id="@+id/accountFragment"
android:name="com.aurora.store.view.ui.account.AccountFragment"
android:label="@string/title_account_manager"
tools:layout="@layout/fragment_account" />
tools:layout="@layout/fragment_account" >
<action
android:id="@+id/action_accountFragment_to_googleFragment"
app:destination="@id/googleFragment" />
</fragment>
<fragment
android:id="@+id/settingsFragment"
android:name="com.aurora.store.view.ui.preferences.SettingsFragment"
@@ -246,6 +250,9 @@
app:launchSingleTop="true"
app:popUpTo="@id/mobile_navigation"
app:popUpToInclusive="true" />
<action
android:id="@+id/action_splashFragment_to_googleFragment"
app:destination="@id/googleFragment" />
</fragment>
<fragment
android:id="@+id/googleFragment"
@@ -256,6 +263,13 @@
app:destination="@id/splashFragment"
app:popUpTo="@id/splashFragment"
app:popUpToInclusive="true" />
<action
android:id="@+id/action_googleFragment_to_accountFragment"
app:destination="@id/accountFragment"
app:popUpTo="@id/accountFragment"
app:popUpToInclusive="true" />
<argument android:name="destination"
app:argType="integer" />
</fragment>
<fragment
android:id="@+id/onboardingFragment"