[Android] Medialibrary models: set loading at init

Geoffrey Métais git at videolan.org
Tue Jul 16 11:22:44 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jul 16 11:21:44 2019 +0200| [c254ef002082499d768cc1eaa48d7a123609d391] | committer: Geoffrey Métais

Medialibrary models: set loading at init

> https://code.videolan.org/videolan/vlc-android/commit/c254ef002082499d768cc1eaa48d7a123609d391
---

 .../src/org/videolan/vlc/providers/medialibrary/MedialibraryProvider.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/providers/medialibrary/MedialibraryProvider.kt b/vlc-android/src/org/videolan/vlc/providers/medialibrary/MedialibraryProvider.kt
index 836d23291..f0b0ff375 100644
--- a/vlc-android/src/org/videolan/vlc/providers/medialibrary/MedialibraryProvider.kt
+++ b/vlc-android/src/org/videolan/vlc/providers/medialibrary/MedialibraryProvider.kt
@@ -42,7 +42,7 @@ abstract class MedialibraryProvider<T : MediaLibraryItem>(val context: Context,
 {
     protected val medialibrary = AbstractMedialibrary.getInstance()
     private lateinit var dataSource : DataSource<Int, T>
-    val loading = MutableLiveData<Boolean>().apply { value = false }
+    val loading = MutableLiveData<Boolean>().apply { value = true }
     var isRefreshing by Delegates.observable(false) { _,_, value -> loading.postValue(value) }
         private set
 



More information about the Android mailing list