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:
@@ -94,6 +94,7 @@
|
||||
app:thumbRadius="@dimen/slider_thumb_radius" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/playback_position"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/spacing_medium"
|
||||
@@ -105,6 +106,7 @@
|
||||
tools:text="11:38" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/playback_duration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/spacing_small_inv"
|
||||
|
||||
Reference in New Issue
Block a user