[Android] Disable username for manual SMB server adding

Geoffrey Métais git at videolan.org
Wed Mar 16 11:39:43 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Mar 16 11:15:21 2016 +0100| [e6792fe6f69c1b0a714d1624216223b2787fd9de] | committer: Geoffrey Métais

Disable username for manual SMB server adding

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

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

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 aa85342..46ba64a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/NetworkServerDialog.java
@@ -215,6 +215,7 @@ public class NetworkServerDialog extends DialogFragment implements AdapterView.O
             case "SMB":
                 addressHint = R.string.server_share_hint;
                 portEnabled = false;
+                userEnabled = false;
                 break;
             case "NFS":
                 addressHint = R.string.server_share_hint;
@@ -226,7 +227,9 @@ public class NetworkServerDialog extends DialogFragment implements AdapterView.O
         mPortTitle.setVisibility(portEnabled ? View.VISIBLE : View.INVISIBLE);
         mEditPort.setVisibility(portEnabled ? View.VISIBLE : View.INVISIBLE);
         mEditPort.setText(port);
+        mEditPort.setEnabled(portEnabled);
         mEditUsername.setVisibility(userEnabled ? View.VISIBLE : View.GONE);
+        mEditUsername.setEnabled(userEnabled);
         updateUrl();
     }
 



More information about the Android mailing list