Commit 00a6a266 authored by Geoffrey Métais's avatar Geoffrey Métais

Videos: add loading display

parent fe9ceedd
......@@ -107,6 +107,10 @@ class VideoGridFragment : MediaBrowserFragment<VideosViewModel>(), SwipeRefreshL
else arguments?.getParcelable(KEY_FOLDER)
viewModel = getViewModel(folder)
viewModel.provider.pagedList.observe(this, this)
viewModel.provider.loading.observe(this, Observer { loading ->
if (loading) handler.sendEmptyMessageDelayed(SET_REFRESHING, 300L)
else handler.sendEmptyMessage(UNSET_REFRESHING)
})
AbstractMedialibrary.lastThumb.observe(this, thumbObs)
}
}
......
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