Report an error to the user in log in view when the access to the user name in the...
authorDavid A. Velasco <dvelasco@solidgear.es>
Wed, 29 Jan 2014 11:51:48 +0000 (12:51 +0100)
committerDavid A. Velasco <dvelasco@solidgear.es>
Wed, 29 Jan 2014 11:51:48 +0000 (12:51 +0100)
owncloud-android-library
src/com/owncloud/android/authentication/AuthenticatorActivity.java

index 1c44c7a..5b4f63e 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 1c44c7ac2232478e9a1233d2013207987e2248d8
+Subproject commit 5b4f63ebdb365c6e7e9a3e0148aa18a8d5fb5067
index 3a11ea6..d132ea3 100644 (file)
@@ -36,6 +36,7 @@ import android.support.v4.app.Fragment;
 import android.text.Editable;\r
 import android.text.InputType;\r
 import android.text.TextWatcher;\r
+import android.util.Log;\r
 import android.view.KeyEvent;\r
 import android.view.MotionEvent;\r
 import android.view.View;\r
@@ -822,6 +823,10 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
             \r
             if (success)\r
                 finish();\r
+        } else {\r
+            updateAuthStatusIconAndText(result);\r
+            showAuthStatus();\r
+            Log_OC.e(TAG, "Access to user name failed: " + result.getLogMessage());\r
         }\r
         \r
     }\r
@@ -1591,7 +1596,7 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
     }\r
 \r
 \r
-    public void onSamlDialogSuccess(String sessionCookie){\r
+    public void onSamlDialogSuccess(String sessionCookie) {\r
         mAuthToken = sessionCookie;\r
         \r
         if (sessionCookie != null && sessionCookie.length() > 0) {\r