From: David A. Velasco Date: Wed, 29 Jan 2014 11:51:48 +0000 (+0100) Subject: Report an error to the user in log in view when the access to the user name in the... X-Git-Tag: oc-android-1.5.5~65^2~2 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/5db7b8e6f6b6f11429477850b092fd8754d19892?hp=--cc Report an error to the user in log in view when the access to the user name in the server fails --- 5db7b8e6f6b6f11429477850b092fd8754d19892 diff --git a/owncloud-android-library b/owncloud-android-library index 1c44c7ac..5b4f63eb 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 3a11ea62..d132ea3f 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) {