Search in sources :

Example 1 with RichDocumentsUrlOperation

use of com.owncloud.android.operations.RichDocumentsUrlOperation in project android by nextcloud.

the class RichDocumentsLoadUrlTask method doInBackground.

@Override
protected String doInBackground(Void... voids) {
    final EditorWebView editorWebView = editorWebViewWeakReference.get();
    if (editorWebView == null) {
        return "";
    }
    RemoteOperationResult result = new RichDocumentsUrlOperation(file.getLocalId()).execute(account, editorWebView);
    if (!result.isSuccess()) {
        return "";
    }
    return (String) result.getData().get(0);
}
Also used : RemoteOperationResult(com.owncloud.android.lib.common.operations.RemoteOperationResult) EditorWebView(com.owncloud.android.ui.activity.EditorWebView) RichDocumentsUrlOperation(com.owncloud.android.operations.RichDocumentsUrlOperation)

Aggregations

RemoteOperationResult (com.owncloud.android.lib.common.operations.RemoteOperationResult)1 RichDocumentsUrlOperation (com.owncloud.android.operations.RichDocumentsUrlOperation)1 EditorWebView (com.owncloud.android.ui.activity.EditorWebView)1