mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Removed last direct dependency on OwnCloudClientFactory to get all the OwnCloudClient instances through OwnCloudClientMap
This commit is contained in:
parent
a8ed64f5b7
commit
310a8da622
2 changed files with 6 additions and 4 deletions
|
@ -1 +1 @@
|
|||
Subproject commit b18dffe100942a4e7df8ce1615ba5a254cac8dbc
|
||||
Subproject commit b5ff057e95858f1b8a0559a4598053702adcbf0e
|
|
@ -26,7 +26,6 @@ import java.util.concurrent.ConcurrentMap;
|
|||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.datamodel.FileDataStorageManager;
|
||||
import com.owncloud.android.lib.common.OwnCloudClient;
|
||||
import com.owncloud.android.lib.common.OwnCloudClientFactory;
|
||||
import com.owncloud.android.lib.common.OwnCloudClientMap;
|
||||
import com.owncloud.android.lib.common.operations.OnRemoteOperationListener;
|
||||
import com.owncloud.android.lib.common.operations.RemoteOperation;
|
||||
|
@ -461,8 +460,11 @@ public class OperationsService extends Service {
|
|||
mLastTarget.mAccount,
|
||||
getContentResolver());
|
||||
} else {
|
||||
mOwnCloudClient = OwnCloudClientFactory.createOwnCloudClient(mLastTarget.mServerUrl, getApplicationContext(),
|
||||
mLastTarget.mFollowRedirects); // this is not good enough
|
||||
mOwnCloudClient = OwnCloudClientMap.getAnonymousClientFor(
|
||||
mLastTarget.mServerUrl,
|
||||
this,
|
||||
mLastTarget.mFollowRedirects);
|
||||
|
||||
if (mLastTarget.mWebDavUrl != null) {
|
||||
mOwnCloudClient.setWebdavUri(Uri.parse(mLastTarget.mWebDavUrl));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue