Archived
Compact layout: back stack now gets popped every time the user navigates back using the back button embedded in the fragment layout
This commit is contained in:
@@ -29,7 +29,9 @@
|
|||||||
tools:layout="@layout/fragment_event">
|
tools:layout="@layout/fragment_event">
|
||||||
<action
|
<action
|
||||||
android:id="@+id/action_schedule_to_compact_overview"
|
android:id="@+id/action_schedule_to_compact_overview"
|
||||||
app:destination="@id/compact_overview" />
|
app:destination="@id/compact_overview"
|
||||||
|
app:popUpTo="@+id/nav_graph_compact"
|
||||||
|
app:popUpToInclusive="true"/>
|
||||||
</fragment>
|
</fragment>
|
||||||
<fragment
|
<fragment
|
||||||
android:id="@+id/canteen"
|
android:id="@+id/canteen"
|
||||||
@@ -38,7 +40,9 @@
|
|||||||
tools:layout="@layout/fragment_canteen">
|
tools:layout="@layout/fragment_canteen">
|
||||||
<action
|
<action
|
||||||
android:id="@+id/action_canteen_to_compact_overview"
|
android:id="@+id/action_canteen_to_compact_overview"
|
||||||
app:destination="@id/compact_overview" />
|
app:destination="@id/compact_overview"
|
||||||
|
app:popUpTo="@+id/nav_graph_compact"
|
||||||
|
app:popUpToInclusive="true"/>
|
||||||
</fragment>
|
</fragment>
|
||||||
<fragment
|
<fragment
|
||||||
android:id="@+id/settings"
|
android:id="@+id/settings"
|
||||||
@@ -47,7 +51,9 @@
|
|||||||
tools:layout="@layout/fragment_settings">
|
tools:layout="@layout/fragment_settings">
|
||||||
<action
|
<action
|
||||||
android:id="@+id/action_settings_to_compact_overview"
|
android:id="@+id/action_settings_to_compact_overview"
|
||||||
app:destination="@id/compact_overview" />
|
app:destination="@id/compact_overview"
|
||||||
|
app:popUpTo="@+id/nav_graph_compact"
|
||||||
|
app:popUpToInclusive="true"/>
|
||||||
</fragment>
|
</fragment>
|
||||||
|
|
||||||
</navigation>
|
</navigation>
|
||||||
Reference in New Issue
Block a user