diff --git a/src/main/java/com/owncloud/android/ui/activity/RichDocumentsEditorWebView.java b/src/main/java/com/owncloud/android/ui/activity/RichDocumentsEditorWebView.java index 3e5dfb69ff..92e6db4657 100644 --- a/src/main/java/com/owncloud/android/ui/activity/RichDocumentsEditorWebView.java +++ b/src/main/java/com/owncloud/android/ui/activity/RichDocumentsEditorWebView.java @@ -144,7 +144,10 @@ public class RichDocumentsEditorWebView extends EditorWebView { @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (RESULT_OK != resultCode) { - // TODO + if (requestCode == REQUEST_LOCAL_FILE) { + this.uploadMessage.onReceiveValue(null); + this.uploadMessage = null; + } return; }