From 862136a398decff8ad5d4509ca51bd6b893ff851 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Fri, 22 Apr 2016 17:33:08 -0700 Subject: [PATCH] Revert the suspicious text input change for now Reviewed By: nickholub Differential Revision: D3213682 fb-gh-sync-id: 5b3090864c4c50f307de22493c9a7a8cb4687621 fbshipit-source-id: 5b3090864c4c50f307de22493c9a7a8cb4687621 --- .../main/java/com/facebook/react/views/text/ReactTextView.java | 1 - .../java/com/facebook/react/views/textinput/ReactEditText.java | 1 - 2 files changed, 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java index 63b820482..11f1aee50 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java @@ -143,7 +143,6 @@ public class ReactTextView extends TextView implements ReactCompoundView { @Override public void onAttachedToWindow() { super.onAttachedToWindow(); - setTextIsSelectable(mTextIsSelectable); if (mContainsImages && getText() instanceof Spanned) { Spanned text = (Spanned) getText(); TextInlineImageSpan[] spans = text.getSpans(0, text.length(), TextInlineImageSpan.class); diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java index 497a3ec0f..61f8d0d49 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java @@ -396,7 +396,6 @@ public class ReactEditText extends EditText { @Override public void onAttachedToWindow() { super.onAttachedToWindow(); - setTextIsSelectable(mTextIsSelectable); if (mContainsImages && getText() instanceof Spanned) { Spanned text = (Spanned) getText(); TextInlineImageSpan[] spans = text.getSpans(0, text.length(), TextInlineImageSpan.class);