Update stored DetailViewModel items

Change the stored items in DetailViewModel to LiveData. Remove the need to reset the stored items when a fragment is destroyed.
This commit is contained in:
OxygenCobalt
2020-09-27 16:16:32 -06:00
parent d9cf3772e6
commit af4c32eb5b
13 changed files with 65 additions and 83 deletions
@@ -77,7 +77,7 @@
android:layout_marginStart="@dimen/margin_medium"
android:clickable="true"
android:focusable="true"
android:onClick="@{() -> detailModel.navToParent()}"
android:onClick="@{() -> detailModel.updateArtist(album.artist)}"
android:text="@{album.artist.name}"
android:textAppearance="?android:attr/textAppearanceListItem"
android:textColor="?android:attr/textColorSecondary"