[Android] Add UPNP servers to network list

Nicolas Pomepuy git at videolan.org
Tue Dec 1 13:24:08 CET 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Dec  1 07:16:46 2020 +0100| [d87d6a959bf5b7388a35ba3f827c49804cc45f43] | committer: Nicolas Pomepuy

Add UPNP servers to network list

Fixes #1561

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

 application/vlc-android/src/org/videolan/vlc/util/Browserutils.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/util/Browserutils.kt b/application/vlc-android/src/org/videolan/vlc/util/Browserutils.kt
index 3364a47bf..c1c06616f 100644
--- a/application/vlc-android/src/org/videolan/vlc/util/Browserutils.kt
+++ b/application/vlc-android/src/org/videolan/vlc/util/Browserutils.kt
@@ -42,7 +42,7 @@ fun isSchemeSupported(scheme: String?) = when(scheme) {
     else -> false
 }
 fun String?.isSchemeNetwork() = when(this) {
-    "smb", "ssh", "nfs", "ftp", "ftps" -> true
+    "smb", "ssh", "nfs", "ftp", "ftps", "upnp" -> true
     else -> false
 }
 



More information about the Android mailing list