From 58b387b99766f0739da4fef7025c6df0a2afdea9 Mon Sep 17 00:00:00 2001 From: ZetaTom <70907959+ZetaTom@users.noreply.github.com> Date: Mon, 27 Nov 2023 14:08:33 +0100 Subject: [PATCH] Deprecate OwncloudClient - DirectEditing Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com> --- .../owncloud/android/operations/RefreshFolderOperation.java | 4 ++-- .../android/ui/asynctasks/TextEditorLoadUrlTask.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java b/app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java index 4fef8dc5cd..aa76b4935e 100644 --- a/app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java +++ b/app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java @@ -324,8 +324,8 @@ public class RefreshFolderOperation extends RemoteOperation { } private void updateDirectEditing(ArbitraryDataProvider arbitraryDataProvider, String newDirectEditingEtag) { - RemoteOperationResult result = new DirectEditingObtainRemoteOperation().execute(user, - mContext); + RemoteOperationResult result = + new DirectEditingObtainRemoteOperation().executeNextcloudClient(user, mContext); if (result.isSuccess()) { DirectEditing directEditing = result.getResultData(); diff --git a/app/src/main/java/com/owncloud/android/ui/asynctasks/TextEditorLoadUrlTask.java b/app/src/main/java/com/owncloud/android/ui/asynctasks/TextEditorLoadUrlTask.java index 9c946528e4..6b0d077ec9 100644 --- a/app/src/main/java/com/owncloud/android/ui/asynctasks/TextEditorLoadUrlTask.java +++ b/app/src/main/java/com/owncloud/android/ui/asynctasks/TextEditorLoadUrlTask.java @@ -47,15 +47,15 @@ public class TextEditorLoadUrlTask extends AsyncTask { return ""; } - RemoteOperationResult result = new DirectEditingOpenFileRemoteOperation(file.getRemotePath(), editor.getId()) - .execute(user, editorWebViewWeakReference.get()); + RemoteOperationResult result = new DirectEditingOpenFileRemoteOperation(file.getRemotePath(), editor.getId()) + .executeNextcloudClient(user, editorWebViewWeakReference.get()); if (!result.isSuccess()) { return ""; } - return (String) result.getData().get(0); + return result.getResultData(); } @Override