Revert the suspicious text input change for now

Reviewed By: nickholub

Differential Revision: D3213682

fb-gh-sync-id: 5b3090864c4c50f307de22493c9a7a8cb4687621
fbshipit-source-id: 5b3090864c4c50f307de22493c9a7a8cb4687621
This commit is contained in:
Rui Chen 2016-04-22 17:33:08 -07:00 committed by Facebook Github Bot 4
parent 8aa82d3b33
commit 862136a398
2 changed files with 0 additions and 2 deletions

View File

@ -143,7 +143,6 @@ public class ReactTextView extends TextView implements ReactCompoundView {
@Override @Override
public void onAttachedToWindow() { public void onAttachedToWindow() {
super.onAttachedToWindow(); super.onAttachedToWindow();
setTextIsSelectable(mTextIsSelectable);
if (mContainsImages && getText() instanceof Spanned) { if (mContainsImages && getText() instanceof Spanned) {
Spanned text = (Spanned) getText(); Spanned text = (Spanned) getText();
TextInlineImageSpan[] spans = text.getSpans(0, text.length(), TextInlineImageSpan.class); TextInlineImageSpan[] spans = text.getSpans(0, text.length(), TextInlineImageSpan.class);

View File

@ -396,7 +396,6 @@ public class ReactEditText extends EditText {
@Override @Override
public void onAttachedToWindow() { public void onAttachedToWindow() {
super.onAttachedToWindow(); super.onAttachedToWindow();
setTextIsSelectable(mTextIsSelectable);
if (mContainsImages && getText() instanceof Spanned) { if (mContainsImages && getText() instanceof Spanned) {
Spanned text = (Spanned) getText(); Spanned text = (Spanned) getText();
TextInlineImageSpan[] spans = text.getSpans(0, text.length(), TextInlineImageSpan.class); TextInlineImageSpan[] spans = text.getSpans(0, text.length(), TextInlineImageSpan.class);