Removed last direct dependency on OwnCloudClientFactory to get all the OwnCloudClient...
authorDavid A. Velasco <dvelasco@solidgear.es>
Tue, 10 Jun 2014 10:52:03 +0000 (12:52 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Tue, 10 Jun 2014 10:52:03 +0000 (12:52 +0200)
owncloud-android-library
src/com/owncloud/android/services/OperationsService.java

index b18dffe..b5ff057 160000 (submodule)
@@ -1 +1 @@
-Subproject commit b18dffe100942a4e7df8ce1615ba5a254cac8dbc
+Subproject commit b5ff057e95858f1b8a0559a4598053702adcbf0e
index 6fea508..a5ff56d 100644 (file)
@@ -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));
                         }