Skip to content

Commit

Permalink
Utilize isEnterPressedUnderway
Browse files Browse the repository at this point in the history
  • Loading branch information
hypest committed Apr 30, 2019
1 parent 991f8a8 commit 0417343
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ public void onTextChanged(CharSequence s, int start, int before, int count) {

// if the "Enter" handling is underway, don't sent text change events. The ReactAztecEnterEvent will have
// the text (minus the Enter char itself).
if (mEditText.getText().getSpans(0, 0, EnterPressedUnderway.class).length == 0) {
if (!mEditText.isEnterPressedUnderway()) {
int currentEventCount = mEditText.incrementAndGetEventCounter();
// The event that contains the event counter and updates it must be sent first.
// TODO: t7936714 merge these events
Expand Down

0 comments on commit 0417343

Please sign in to comment.