Skip to content

Commit

Permalink
Merge pull request #41 from wordpress-mobile/fix/layout-bliking-when-…
Browse files Browse the repository at this point in the history
…typing-android

Fix android blinking when typing - Revert a patch copied from RN TextInput
  • Loading branch information
mzorz authored Aug 1, 2018
2 parents 55cb023 + 9885474 commit 6afc3c5
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6afc3c5

Please sign in to comment.