[Android] return first protocol if none found

Geoffrey Métais git at videolan.org
Mon Mar 7 13:41:07 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar  7 12:02:23 2016 +0100| [e9ac518458aa12d535a01ec4f1a298abe103bd19] | committer: Geoffrey Métais

return first protocol if none found

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

 vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.java
index 9e1aba3..aa85342 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.java
@@ -185,7 +185,7 @@ public class NetworkServerDialog extends DialogFragment implements AdapterView.O
             if (TextUtils.equals(mProtocols[i], protocol))
                 return i;
         }
-        return -1;
+        return 0;
     }
 
 



More information about the Android mailing list