Added forgotten trim()s on the content of the URL field
authorDavid A. Velasco <dvelasco@solidgear.es>
Fri, 3 Aug 2012 10:56:50 +0000 (12:56 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Fri, 3 Aug 2012 10:56:50 +0000 (12:56 +0200)
src/com/owncloud/android/ui/activity/AuthenticatorActivity.java

index dbf9576..6344dad 100644 (file)
@@ -234,7 +234,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
     public void onOkClick(View view) {\r
         String prefix = "";\r
         String url = ((TextView) findViewById(R.id.host_URL)).getText()\r
-                .toString();\r
+                .toString().trim();\r
         if (mIsSslConn) {\r
             prefix = "https://";\r
         } else {\r
@@ -282,7 +282,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
         mStatusText = mStatusIcon = 0;\r
         mStatusCorrect = false;\r
         String t_url = ((TextView) findViewById(R.id.host_URL)).getText()\r
-                .toString().toLowerCase();\r
+                .toString().trim().toLowerCase();\r
 \r
         switch (type) {\r
         case OK_SSL:\r