Commit c254ef00 authored by Geoffrey Métais's avatar Geoffrey Métais

Medialibrary models: set loading at init

parent f2117c57
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment