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
+6 -6
View File
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/info_widget_desc"
android:initialLayout="@layout/widget_small"
android:minResizeWidth="176dp"
android:minResizeHeight="152dp"
android:previewLayout="@layout/widget_small"
android:initialLayout="@layout/widget_minimal"
android:minResizeWidth="@dimen/widget_width_min"
android:minResizeHeight="@dimen/widget_height_min"
android:previewLayout="@layout/widget_minimal"
android:previewImage="@drawable/ui_widget_preview"
android:resizeMode="horizontal|vertical"
android:minWidth="176dp"
android:minHeight="180dp"
android:minWidth="@dimen/widget_width_def"
android:minHeight="@dimen/widget_height_def"
android:targetCellWidth="3"
android:targetCellHeight="3"
android:updatePeriodMillis="0"