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:
Родитель
8aa82d3b33
Коммит
862136a398
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче