Heavily refactor navigation

Make how navigation to the detail fragments much simpler/easier to maintain compared to previously.
This commit is contained in:
OxygenCobalt
2021-01-13 16:11:59 -07:00
parent fafaa0bf1f
commit 60af5f8656
15 changed files with 143 additions and 120 deletions
@@ -24,7 +24,6 @@
android:id="@+id/playback_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:background="@color/background"
android:fitsSystemWindows="true">
@@ -55,7 +55,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_medium"
android:onClick="@{() -> detailModel.navToParent()}"
android:onClick="@{() -> detailModel.navToItem(album.artist)}"
android:text="@{album.artist.name}"
android:textAppearance="?android:attr/textAppearanceListItem"
android:textColor="?android:attr/textColorSecondary"