mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
create outside of loop
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
51d7ea8cd6
commit
9582b3ea86
1 changed files with 1 additions and 1 deletions
|
@ -234,6 +234,7 @@ public final class AccountUtils {
|
|||
String displayName;
|
||||
String newAccountName;
|
||||
Account newAccount;
|
||||
GetRemoteUserInfoOperation remoteUserNameOperation = new GetRemoteUserInfoOperation();
|
||||
|
||||
for (Account account : ocAccounts) {
|
||||
// build new account name
|
||||
|
@ -245,7 +246,6 @@ public final class AccountUtils {
|
|||
OwnCloudClient client = OwnCloudClientManagerFactory.getDefaultSingleton()
|
||||
.getClientFor(ocAccount, context);
|
||||
|
||||
GetRemoteUserInfoOperation remoteUserNameOperation = new GetRemoteUserInfoOperation();
|
||||
RemoteOperationResult result = remoteUserNameOperation.execute(client);
|
||||
|
||||
if (result.isSuccess()) {
|
||||
|
|
Loading…
Reference in a new issue