зеркало из https://github.com/nextcloud/android.git
Deprecate OwncloudClient - DirectEditing
Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
This commit is contained in:
Родитель
718261c64d
Коммит
58b387b997
|
@ -324,8 +324,8 @@ public class RefreshFolderOperation extends RemoteOperation {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateDirectEditing(ArbitraryDataProvider arbitraryDataProvider, String newDirectEditingEtag) {
|
private void updateDirectEditing(ArbitraryDataProvider arbitraryDataProvider, String newDirectEditingEtag) {
|
||||||
RemoteOperationResult<DirectEditing> result = new DirectEditingObtainRemoteOperation().execute(user,
|
RemoteOperationResult<DirectEditing> result =
|
||||||
mContext);
|
new DirectEditingObtainRemoteOperation().executeNextcloudClient(user, mContext);
|
||||||
|
|
||||||
if (result.isSuccess()) {
|
if (result.isSuccess()) {
|
||||||
DirectEditing directEditing = result.getResultData();
|
DirectEditing directEditing = result.getResultData();
|
||||||
|
|
|
@ -47,15 +47,15 @@ public class TextEditorLoadUrlTask extends AsyncTask<Void, Void, String> {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoteOperationResult result = new DirectEditingOpenFileRemoteOperation(file.getRemotePath(), editor.getId())
|
RemoteOperationResult<String> result = new DirectEditingOpenFileRemoteOperation(file.getRemotePath(), editor.getId())
|
||||||
.execute(user, editorWebViewWeakReference.get());
|
.executeNextcloudClient(user, editorWebViewWeakReference.get());
|
||||||
|
|
||||||
|
|
||||||
if (!result.isSuccess()) {
|
if (!result.isSuccess()) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return (String) result.getData().get(0);
|
return result.getResultData();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Загрузка…
Ссылка в новой задаче