Skip to content

Commit

Permalink
Additional null check for focusing/blurring views
Browse files Browse the repository at this point in the history
  • Loading branch information
Flewp authored and joemun committed Dec 2, 2024
1 parent af518c4 commit 9b863e4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public void handleKeyEvent(KeyEvent ev) {

/** Called from {@link ReactRootView} when focused view changes. */
public void onFocusChanged(View newFocusedView) {
if (newFocusedView == null) {
return;
}

if (mLastFocusedViewId == newFocusedView.getId()) {
return;
}
Expand Down

0 comments on commit 9b863e4

Please sign in to comment.