Store references to items in DetailViewModel

Store references to the artist & album inside DetailViewModel to prevent an artist/album search on every re-creation.
This commit is contained in:
OxygenCobalt
2020-09-23 15:42:06 -06:00
parent f5d007267d
commit b80a3596b8
12 changed files with 115 additions and 68 deletions
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!--
<?xml version="1.0" encoding="utf-8"?>
<!--
Divider used by recyclerview header items
https://stackoverflow.com/a/61157571/14143986
-->
@@ -12,4 +13,11 @@ https://stackoverflow.com/a/61157571/14143986
android:color="@color/divider_color" />
</shape>
</item>
<item>
<ripple
android:color="@color/selection_color"
android:radius="@dimen/divider_ripple_size">
</ripple>
</item>
</layer-list>