From 499030369af59a14e1035a1b32a5de9247d6caa1 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Tue, 27 Aug 2019 01:41:51 +0300 Subject: [PATCH] Fixed android editor crash --- src/components/markdownEditor/view/markdownEditorView.js | 3 ++- src/screens/editor/screen/editorScreen.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/markdownEditor/view/markdownEditorView.js b/src/components/markdownEditor/view/markdownEditorView.js index 6a65dc4ae..7bd5d4b39 100644 --- a/src/components/markdownEditor/view/markdownEditorView.js +++ b/src/components/markdownEditor/view/markdownEditorView.js @@ -199,7 +199,7 @@ export default class MarkdownEditorView extends Component { }; render() { - const { handleOpenImagePicker, intl, isPreviewActive, isReply } = this.props; + const { handleOpenImagePicker, intl, isPreviewActive, isReply, isLoading } = this.props; const { text, selection } = this.state; return ( @@ -223,6 +223,7 @@ export default class MarkdownEditorView extends Component { underlineColorAndroid="transparent" value={text} innerRef={this.inputRef} + editable={!isLoading} /> ) : ( this._renderPreview() diff --git a/src/screens/editor/screen/editorScreen.js b/src/screens/editor/screen/editorScreen.js index 0544bb339..a25341111 100644 --- a/src/screens/editor/screen/editorScreen.js +++ b/src/screens/editor/screen/editorScreen.js @@ -236,6 +236,7 @@ class EditorScreen extends Component { uploadedImage={uploadedImage} initialFields={this._initialFields} isReply={isReply} + isLoading={isPostSending || isUploading} />