-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated Owncloud to NextCloud client for EmptyTrashbinRemoteOperatio…
…n to fix crash.
- Loading branch information
1 parent
e786f0c
commit 1ed5dbe
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,13 @@ | |
* Nextcloud Android client application | ||
* | ||
* @author Tobias Kaminsky | ||
* @author TSI-mc | ||
* @author Chris Narkiewicz | ||
* | ||
* Copyright (C) 2018 Tobias Kaminsky | ||
* Copyright (C) 2018 Nextcloud GmbH. | ||
* Copyright (C) 2019 Chris Narkiewicz <[email protected]> | ||
* Copyright (C) 2023 TSI-mc | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -27,6 +29,7 @@ | |
|
||
import com.nextcloud.client.account.User; | ||
import com.nextcloud.client.network.ClientFactory; | ||
import com.nextcloud.common.NextcloudClient; | ||
import com.owncloud.android.R; | ||
import com.owncloud.android.lib.common.OwnCloudClient; | ||
import com.owncloud.android.lib.common.operations.RemoteOperationResult; | ||
|
@@ -112,7 +115,7 @@ private EmptyTrashbinTask(User user, ClientFactory clientFactory, OperationCallb | |
@Override | ||
protected Boolean doInBackground(Void... voids) { | ||
try { | ||
OwnCloudClient client = clientFactory.create(user); | ||
NextcloudClient client = clientFactory.createNextcloudClient(user); | ||
EmptyTrashbinRemoteOperation emptyTrashbinFileOperation = new EmptyTrashbinRemoteOperation(); | ||
RemoteOperationResult result = emptyTrashbinFileOperation.execute(client); | ||
return result.isSuccess(); | ||
|