[Android] PlaylistsFragment: PTR refresh the whole medialib
Geoffrey Métais
git at videolan.org
Thu Jan 31 14:33:58 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 31 14:33:08 2019 +0100| [3122b685085af6bb2ddc3b7eb4497f014f2e1dec] | committer: Geoffrey Métais
PlaylistsFragment: PTR refresh the whole medialib
> https://code.videolan.org/videolan/vlc-android/commit/3122b685085af6bb2ddc3b7eb4497f014f2e1dec
---
vlc-android/src/org/videolan/vlc/gui/PlaylistFragment.kt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/PlaylistFragment.kt b/vlc-android/src/org/videolan/vlc/gui/PlaylistFragment.kt
index 76268b3d1..a15ac4ff2 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PlaylistFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/PlaylistFragment.kt
@@ -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)
More information about the Android
mailing list