use of com.owncloud.android.ui.activity.EditorWebView in project android by nextcloud.
the class TextEditorLoadUrlTask method onPostExecute.
@Override
protected void onPostExecute(String url) {
EditorWebView editorWebView = editorWebViewWeakReference.get();
if (editorWebView == null) {
return;
}
editorWebView.onUrlLoaded(url);
}
use of com.owncloud.android.ui.activity.EditorWebView in project android by nextcloud.
the class TextEditorLoadUrlTask method doInBackground.
@Override
protected String doInBackground(Void... voids) {
final EditorWebView editorWebView = editorWebViewWeakReference.get();
if (editorWebView == null) {
return "";
}
Editor editor = FileMenuFilter.getEditor(editorWebView.getContentResolver(), user, file.getMimeType());
if (editor == null) {
return "";
}
RemoteOperationResult result = new DirectEditingOpenFileRemoteOperation(file.getRemotePath(), editor.getId()).execute(account, editorWebViewWeakReference.get());
if (!result.isSuccess()) {
return "";
}
return (String) result.getData().get(0);
}
use of com.owncloud.android.ui.activity.EditorWebView in project android by nextcloud.
the class RichDocumentsLoadUrlTask method onPostExecute.
@Override
protected void onPostExecute(String url) {
EditorWebView editorWebView = editorWebViewWeakReference.get();
if (editorWebView == null) {
return;
}
editorWebView.onUrlLoaded(url);
}
use of com.owncloud.android.ui.activity.EditorWebView 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);
}
Aggregations