projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into check_server_certificates_in_SSO_webview
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
authentication
/
AuthenticatorActivity.java
diff --git
a/src/com/owncloud/android/authentication/AuthenticatorActivity.java
b/src/com/owncloud/android/authentication/AuthenticatorActivity.java
index
2fabc33
..
9b66869
100644
(file)
--- a/
src/com/owncloud/android/authentication/AuthenticatorActivity.java
+++ b/
src/com/owncloud/android/authentication/AuthenticatorActivity.java
@@
-815,6
+815,7
@@
public class AuthenticatorActivity extends AccountAuthenticatorActivity
}
\r
\r
private void onGetUserNameFinish(GetRemoteUserNameOperation operation, RemoteOperationResult result) {
\r
}
\r
\r
private void onGetUserNameFinish(GetRemoteUserNameOperation operation, RemoteOperationResult result) {
\r
+
\r
if (result.isSuccess()) {
\r
boolean success = false;
\r
String username = operation.getUserName();
\r
if (result.isSuccess()) {
\r
boolean success = false;
\r
String username = operation.getUserName();
\r
@@
-839,7
+840,7
@@
public class AuthenticatorActivity extends AccountAuthenticatorActivity
if (success)
\r
finish();
\r
} else {
\r
if (success)
\r
finish();
\r
} else {
\r
- update
AuthStatusIconAndText(result
);
\r
+ update
StatusIconFailUserName(
);
\r
showAuthStatus();
\r
Log_OC.e(TAG, "Access to user name failed: " + result.getLogMessage());
\r
}
\r
showAuthStatus();
\r
Log_OC.e(TAG, "Access to user name failed: " + result.getLogMessage());
\r
}
\r
@@
-1111,6
+1112,11
@@
public class AuthenticatorActivity extends AccountAuthenticatorActivity
}
\r
\r
\r
}
\r
\r
\r
+ private void updateStatusIconFailUserName(){
\r
+ mAuthStatusIcon = android.R.drawable.ic_secure;
\r
+ mAuthStatusText = R.string.auth_fail_get_user_name;
\r
+ }
\r
+
\r
/**
\r
* Processes the result of the request for and access token send
\r
* to an OAuth authorization server.
\r
/**
\r
* Processes the result of the request for and access token send
\r
* to an OAuth authorization server.
\r