ui: create viewmodel for navigation
Create a ViewModel for the more complicated navigation pathways. Normally, navigation was fragmented along a complicated stretch of fragment hacks and DetailViewModel's navToItem attitbute, both of which were not really that ideal. Dumpster them for a single, unified viewmodel for the more complicated navigation situations. This removes much of the duplicate navigation logic and is likely much more maintainable for future situations.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<View
|
||||
android:id="@+id/background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorPrimary"
|
||||
@@ -21,6 +22,7 @@
|
||||
app:tint="?attr/colorSurface" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/body"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/colorSurface">
|
||||
|
||||
Reference in New Issue
Block a user