From 98854747d54cdabc348990e2e6051ae0307b4b89 Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Wed, 1 Aug 2018 12:32:47 +0200 Subject: [PATCH] Revert the patch copied from RN TextInput added here : https://github.com/wordpress-mobile/react-native-aztec/pull/39/commits/484cbb57591c236485d9193b5d52e2105ca9be09 that makes our AztecText component blinking during typing. --- .../mobile/ReactNativeAztec/ReactAztecText.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/android/src/main/java/org/wordpress/mobile/ReactNativeAztec/ReactAztecText.java b/android/src/main/java/org/wordpress/mobile/ReactNativeAztec/ReactAztecText.java index 72b750279b6efe..5cb005e1be2068 100644 --- a/android/src/main/java/org/wordpress/mobile/ReactNativeAztec/ReactAztecText.java +++ b/android/src/main/java/org/wordpress/mobile/ReactNativeAztec/ReactAztecText.java @@ -95,17 +95,6 @@ private void onContentSizeChange() { setIntrinsicContentSize(); } - // After the text changes inside an EditText, TextView checks if a layout() has been requested. - // If it has, it will not scroll the text to the end of the new text inserted, but wait for the - // next layout() to be called. However, we do not perform a layout() after a requestLayout(), so - // we need to override isLayoutRequested to force EditText to scroll to the end of the new text - // immediately. - // TODO: t6408636 verify if we should schedule a layout after a View does a requestLayout() - @Override - public boolean isLayoutRequested() { - return false; - } - @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { onContentSizeChange();