From 5db7b8e6f6b6f11429477850b092fd8754d19892 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Wed, 29 Jan 2014 12:51:48 +0100 Subject: [PATCH] Report an error to the user in log in view when the access to the user name in the server fails --- owncloud-android-library | 2 +- .../android/authentication/AuthenticatorActivity.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/owncloud-android-library b/owncloud-android-library index 1c44c7ac22..5b4f63ebdb 160000 --- a/owncloud-android-library +++ b/owncloud-android-library @@ -1 +1 @@ -Subproject commit 1c44c7ac2232478e9a1233d2013207987e2248d8 +Subproject commit 5b4f63ebdb365c6e7e9a3e0148aa18a8d5fb5067 diff --git a/src/com/owncloud/android/authentication/AuthenticatorActivity.java b/src/com/owncloud/android/authentication/AuthenticatorActivity.java index 3a11ea624d..d132ea3f2b 100644 --- a/src/com/owncloud/android/authentication/AuthenticatorActivity.java +++ b/src/com/owncloud/android/authentication/AuthenticatorActivity.java @@ -36,6 +36,7 @@ import android.support.v4.app.Fragment; import android.text.Editable; import android.text.InputType; import android.text.TextWatcher; +import android.util.Log; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; @@ -822,6 +823,10 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList if (success) finish(); + } else { + updateAuthStatusIconAndText(result); + showAuthStatus(); + Log_OC.e(TAG, "Access to user name failed: " + result.getLogMessage()); } } @@ -1591,7 +1596,7 @@ implements OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList } - public void onSamlDialogSuccess(String sessionCookie){ + public void onSamlDialogSuccess(String sessionCookie) { mAuthToken = sessionCookie; if (sessionCookie != null && sessionCookie.length() > 0) {