[Android] Network browser: disable PTR on root
Geoffrey Métais
git at videolan.org
Fri Jul 5 14:07:44 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jul 5 12:12:48 2019 +0200| [2ce4310e5c7374c131adc08d3ee2a5ca69e95def] | committer: Geoffrey Métais
Network browser: disable PTR on root
this is not relevant for network shares discovery
> https://code.videolan.org/videolan/vlc-android/commit/2ce4310e5c7374c131adc08d3ee2a5ca69e95def
---
vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.kt | 1 +
1 file changed, 1 insertion(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.kt b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.kt
index 9af0d326b..ababed829 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.kt
@@ -71,6 +71,7 @@ class NetworkBrowserFragment : BaseBrowserFragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
viewModel = ViewModelProviders.of(this, NetworkModel.Factory(requireContext(), mrl, showHiddenFiles)).get(NetworkModel::class.java)
+ if (isRootDirectory) swipeRefreshLayout?.isEnabled = false
}
override fun onActivityCreated(savedInstanceState: Bundle?) {
More information about the Android
mailing list