Skip to content

Commit

Permalink
Migrated Owncloud to NextCloud client for EmptyTrashbinRemoteOperatio…
Browse files Browse the repository at this point in the history
…n to fix crash.
  • Loading branch information
surinder-tsys committed Jun 14, 2023
1 parent e786f0c commit 1ed5dbe
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 1ed5dbe

Please sign in to comment.