mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Updated app to new OwnCloudClientManager#removeClient method, with OwnCloudAccount parameter
This commit is contained in:
parent
8b3c9f14dc
commit
781c70ac9f
2 changed files with 5 additions and 4 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 7e2ec10442a435b097b7cee48a7529e30b364277
|
||||
Subproject commit 5130a93ef576f0c75d852840355672551fea2e9c
|
|
@ -72,6 +72,7 @@ import com.owncloud.android.files.services.FileDownloader.FileDownloaderBinder;
|
|||
import com.owncloud.android.files.services.FileUploader.FileUploaderBinder;
|
||||
import com.owncloud.android.operations.CreateFolderOperation;
|
||||
|
||||
import com.owncloud.android.lib.common.OwnCloudAccount;
|
||||
import com.owncloud.android.lib.common.OwnCloudClient;
|
||||
import com.owncloud.android.lib.common.OwnCloudClientManagerFactory;
|
||||
import com.owncloud.android.lib.common.OwnCloudCredentials;
|
||||
|
@ -937,10 +938,10 @@ FileFragment.ContainerActivity, OnNavigationListener, OnSslUntrustedCertListener
|
|||
|
||||
OwnCloudClient client = null;
|
||||
try {
|
||||
OwnCloudAccount ocAccount =
|
||||
new OwnCloudAccount(getAccount(), context);
|
||||
client = (OwnCloudClientManagerFactory.getDefaultSingleton().
|
||||
removeClientFor(
|
||||
getAccount(),
|
||||
context));
|
||||
removeClientFor(ocAccount));
|
||||
// TODO get rid of these exceptions
|
||||
} catch (AccountNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in a new issue