|
@@ -25,8 +25,6 @@ package com.owncloud.android.syncadapter;
|
|
|
import java.io.IOException;
|
|
|
|
|
|
import com.owncloud.android.datamodel.FileDataStorageManager;
|
|
|
-import com.owncloud.android.lib.common.OwnCloudAccountStorageManager;
|
|
|
-import com.owncloud.android.lib.common.accounts.AccountUtils;
|
|
|
import com.owncloud.android.lib.common.accounts.AccountUtils.AccountNotFoundException;
|
|
|
import com.owncloud.android.lib.common.OwnCloudAccount;
|
|
|
import com.owncloud.android.lib.common.OwnCloudClient;
|
|
@@ -101,9 +99,7 @@ public abstract class AbstractOwnCloudSyncAdapter extends
|
|
|
|
|
|
protected void initClientForCurrentAccount() throws OperationCanceledException,
|
|
|
AuthenticatorException, IOException, AccountNotFoundException {
|
|
|
- OwnCloudAccount ocAccount = OwnCloudAccountStorageManager.getOwnCloudAccount(
|
|
|
- account, getContext()
|
|
|
- );
|
|
|
+ OwnCloudAccount ocAccount = new OwnCloudAccount(account, getContext());
|
|
|
mClient = OwnCloudClientManagerFactory.getDefaultSingleton().
|
|
|
getClientFor(ocAccount, getContext());
|
|
|
}
|