Skip to content

Commit

Permalink
use int insted of Integer
Browse files Browse the repository at this point in the history
code review #29070 (comment)
  • Loading branch information
fabOnReact committed Mar 18, 2022
1 parent 7ecdea7 commit b86f498
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,8 @@ public void maybeSetText(ReactTextUpdate reactTextUpdate) {
// When we update text, we trigger onChangeText code that will
// try to update state if the wrapper is available. Temporarily disable
// to prevent an infinite loop.
Integer startPosition = getSelectionStart();
Integer endPosition = getSelectionEnd();
int startPosition = getSelectionStart();
int endPosition = getSelectionEnd();
setText(spannableStringBuilder);
maybeSetSelection(mNativeEventCount, startPosition, endPosition);
}
Expand Down

0 comments on commit b86f498

Please sign in to comment.