Move genre name code to genre objects

Instead of converting int-genres to normal genres during the music loader process, instead do it in the Genre object as a lazy initializer, so that the names remain [Probably] unique.
This commit is contained in:
OxygenCobalt
2020-12-25 21:19:35 -07:00
parent 940746f248
commit 600aa2d6f1
9 changed files with 51 additions and 57 deletions
@@ -63,7 +63,7 @@
android:layout_marginStart="@dimen/margin_medium"
android:layout_marginTop="@dimen/margin_medium"
android:layout_marginEnd="@dimen/margin_medium"
android:text="@{genre.name}"
android:text="@{genre.displayName}"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
+1 -1
View File
@@ -27,7 +27,7 @@
<TextView
android:id="@+id/genre_name"
style="@style/ItemText.Primary"
android:text="@{genre.name}"
android:text="@{genre.displayName}"
app:layout_constraintBottom_toTopOf="@+id/genre_count"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/genre_image"