fix compile error after merge

This commit is contained in:
Andy Scherzinger 2016-07-19 16:26:41 +02:00
parent 1a1d50f8b6
commit 8487793056
1 changed files with 2 additions and 2 deletions

View File

@ -1042,8 +1042,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
if (result.isSuccess()) {
boolean success = false;
String username;
if (result.getData().get(0) instanceof UserInfo) {
username = ((UserInfo) result.getData().get(0)).mDisplayName;
if (result.getData().get(0) instanceof GetRemoteUserInfoOperation.UserInfo) {
username = ((GetRemoteUserInfoOperation.UserInfo) result.getData().get(0)).mDisplayName;
} else {
username = (String) result.getData().get(0);
}