Move LiveData away from MusicRepository

Change the LiveData in MusicRepository to just be a plain list, as MusicRepository isnt Lifecycle-Aware.
This commit is contained in:
OxygenCobalt
2020-08-24 15:07:19 -06:00
parent c04a90c3fa
commit acef9550fa
6 changed files with 46 additions and 48 deletions
+28
View File
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="album"
type="org.oxycblt.auxio.music.models.Album" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/albumNameText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{album.title}"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Album Name" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>