[Android] No need to fetch in network browser

Geoffrey Métais git at videolan.org
Thu Jul 19 13:18:10 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul 19 11:56:39 2018 +0200| [11dcb0c90d9758210b8e5996c84cfc379c77a251] | committer: Geoffrey Métais

No need to fetch in network browser

> https://code.videolan.org/videolan/vlc-android/commit/11dcb0c90d9758210b8e5996c84cfc379c77a251
---

 vlc-android/src/org/videolan/vlc/providers/NetworkProvider.kt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/providers/NetworkProvider.kt b/vlc-android/src/org/videolan/vlc/providers/NetworkProvider.kt
index 8c4229ba3..422cc0345 100644
--- a/vlc-android/src/org/videolan/vlc/providers/NetworkProvider.kt
+++ b/vlc-android/src/org/videolan/vlc/providers/NetworkProvider.kt
@@ -46,7 +46,7 @@ class NetworkProvider(dataset: LiveDataset<MediaLibraryItem>, url: String? = nul
         return favs
     }
 
-    override fun fetch() { if (ExternalMonitor.allowLan()) super.fetch() }
+    override fun fetch() {}
 
     override fun refresh(): Boolean {
         if (url == null) {
@@ -55,4 +55,8 @@ class NetworkProvider(dataset: LiveDataset<MediaLibraryItem>, url: String? = nul
         } else super.refresh()
         return true
     }
+
+    override suspend fun parseSubDirectories() {
+        if (url != null) super.parseSubDirectories()
+    }
 }
\ No newline at end of file



More information about the Android mailing list