Commit 3122b685 authored by Geoffrey Métais's avatar Geoffrey Métais

PlaylistsFragment: PTR refresh the whole medialib

parent 66964cbc
......@@ -41,6 +41,7 @@ import org.videolan.vlc.databinding.PlaylistsFragmentBinding
import org.videolan.vlc.gui.audio.AudioBrowserAdapter
import org.videolan.vlc.gui.audio.AudioBrowserFragment
import org.videolan.vlc.gui.audio.BaseAudioBrowser
import org.videolan.vlc.reload
import org.videolan.vlc.util.AppScope
import org.videolan.vlc.viewmodels.paged.PagedPlaylistsModel
......@@ -100,7 +101,7 @@ class PlaylistFragment : BaseAudioBrowser(), Observer<PagedList<MediaLibraryItem
}
override fun onRefresh() {
viewModel.refresh()
activity?.reload()
}
override fun getTitle() = getString(R.string.playlists)
......
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