Update music loading init process

Change the loading process so that LoadingViewModel no longer requires an application instance to start. Also move the main music loading code to an internal function.
This commit is contained in:
OxygenCobalt
2021-03-05 13:45:43 -07:00
parent 2c93e3f362
commit 466629e43d
7 changed files with 43 additions and 54 deletions
+1 -1
View File
@@ -53,7 +53,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/inter_semibold"
android:onClick="@{() -> loadingModel.load()}"
android:onClick="@{() -> loadingModel.load(context)}"
android:text="@string/label_retry"
android:textColor="?attr/colorPrimary"
android:visibility="gone"