mirror of https://github.com/nextcloud/android
fix compile error after merge
This commit is contained in:
parent
1a1d50f8b6
commit
8487793056
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue