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:
@@ -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" />
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:initialLayout="@layout/widget_small"
|
||||
android:minWidth="180dp"
|
||||
android:minWidth="176dp"
|
||||
android:minHeight="180dp"
|
||||
android:minResizeWidth="180dp"
|
||||
android:minResizeWidth="176dp"
|
||||
android:minResizeHeight="152dp"
|
||||
android:previewImage="@drawable/ui_widget_preview"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
|
||||
Reference in New Issue
Block a user