music: refactor model usage

Refactor the way music models are constructed to achieve the following:
- Add a unified interface for resolving display names of artists
- Disambiguate the role of Header in the music objects
- Eliminate the need to load strings in with a context when creating
Header instances
This commit is contained in:
OxygenCobalt
2021-10-28 19:09:54 -06:00
parent 51ba72d861
commit df49e2765f
45 changed files with 315 additions and 245 deletions
@@ -20,7 +20,7 @@
style="@style/Widget.Auxio.TextView.Header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@{header.name}"
android:text="@{header.string.resolve(context)}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"