Focus toggling between multiple entries in endless loop
Bug
When focus is switched fast enough between multiple entries, the program is running into endless loop where it keeps on toggling focus between the entries endlessly, and pressing the back button crashes the app.
- Version Number of Control: 1.1.3
- Device Tested On: NA
- Simulator Tested On: Android Oreo Emulator
Affects
- [ ] iOS
- [x] Android
Expected Behavior
Switching focus between the entries rapidly should not lead to looping.
Actual Behavior
Switching focus between entries rapidly is leading to focus, unfocus loop.
Steps to reproduce the Behavior
Run the example app on the android emulator, and toggle focus on entries by tapping tab button rapidly on physical keyboard. The app enters into the focus unfocus loop.
Modifying XfxEntryRendererDroid with the following seems to resolve Issue #50 and #51:
- Remove line# 98 i.e. Focusable = true;
- Invoke the following without PostDelayed
//EditText.PostDelayed(() => // { EditText.RequestFocus(); manager.ShowSoftInput(EditText, 0); // }, // 100);
I can't remember why I used the PostDelayed bit. I will review, thanks for the report.
k k
K •
- Kk7k K
Kkkk
K o O K