Skip to content

Commit

Permalink
[TIMOB-7618] Android: Text field loses focus when changing orientation
Browse files Browse the repository at this point in the history
[TIMOB-7618] Android: Text field loses focus when changing orientation
Update TiTableView.java
  • Loading branch information
maggieaxway committed Oct 10, 2017
1 parent 75fae19 commit 1a5ecad
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -657,10 +657,11 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto
// Layout is finished, re-enable focus events.
if (focusListener != null) {
focusedView.setOnFocusChangeListener(focusListener);
// If the configuration changed, we manually fire the blur event
if (changed) {
focusListener.onFocusChange(focusedView, false);
}
// The following code was removed for TIMOB-7618 Android: Text field loses focus when changing orientation. Couldn't verify necessary
// // If the configuration changed, we manually fire the blur event
// if (changed) {
// focusListener.onFocusChange(focusedView, false);
// }
}
}
}

0 comments on commit 1a5ecad

Please sign in to comment.