music: change loading ux

Move the main loading response code to MainFragment and add a new
method for other objects to be notified of the progress of the
music loading process. There's probably a better way to do this,
but kotlin coroutines are so complex that I don't know where I
would start. This also adds some enhancements, such as the error
message now showing in more parts of the app and SearchFragment
now re-running the query if the MusicStore instance is loaded.
This commit is contained in:
OxygenCobalt
2021-10-27 18:23:15 -06:00
parent 255154c411
commit 51ba72d861
11 changed files with 243 additions and 153 deletions
+5 -2
View File
@@ -2,11 +2,14 @@
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/info_widget_desc"
android:initialLayout="@layout/widget_small"
android:minResizeWidth="180dp"
android:minResizeWidth="176dp"
android:minResizeHeight="152dp"
android:previewLayout="@layout/widget_small"
android:previewImage="@drawable/ui_widget_preview"
android:resizeMode="horizontal|vertical"
android:minWidth="180dp"
android:minWidth="176dp"
android:minHeight="180dp"
android:targetCellWidth="3"
android:targetCellHeight="3"
android:updatePeriodMillis="0"
android:widgetCategory="home_screen" />