Files
capod/app/src/main/res/navigation/nav_graph.xml
T
darken 2fca9097c2 Fix up-navigation behavior when doing onboarding
Back button shouldn't take you dashboard -> onboarding or onboarding -> dashboard
2024-07-12 13:44:44 +02:00

46 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
app:startDestination="@id/overviewFragment">
<fragment
android:id="@+id/overviewFragment"
android:name="eu.darken.capod.main.ui.overview.OverviewFragment"
tools:layout="@layout/main_fragment">
<action
android:id="@+id/action_overviewFragment_to_settingsFragment"
app:destination="@id/settingsFragment" />
<action
android:id="@+id/action_overviewFragment_to_troubleShooterFragment"
app:destination="@id/troubleShooterFragment" />
<action
android:id="@+id/action_overviewFragment_to_onboardingFragment"
app:popUpTo="@id/overviewFragment"
app:popUpToInclusive="true"
app:destination="@id/onboardingFragment" />
</fragment>
<fragment
android:id="@+id/settingsFragment"
android:name="eu.darken.capod.main.ui.settings.SettingsFragment"
android:label="SettingsFragment"
tools:layout="@layout/settings_fragment" />
<fragment
android:id="@+id/troubleShooterFragment"
android:name="eu.darken.capod.troubleshooter.ui.TroubleShooterFragment"
tools:layout="@layout/troubleshooter_fragment" />
<fragment
android:id="@+id/onboardingFragment"
android:name="eu.darken.capod.main.ui.onboarding.OnboardingFragment"
tools:layout="@layout/onboarding_fragment">
<action
android:id="@+id/action_onboardingFragment_to_overviewFragment"
app:destination="@id/overviewFragment"
app:popUpToInclusive="true"
app:popUpTo="@id/onboardingFragment" />
</fragment>
</navigation>