Xfx.Controls icon indicating copy to clipboard operation
Xfx.Controls copied to clipboard

Focus toggling between multiple entries in endless loop

Open ameem85 opened this issue 7 years ago • 3 comments

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.

ameem85 avatar Mar 16 '18 18:03 ameem85

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);

ameem85 avatar Mar 16 '18 19:03 ameem85

I can't remember why I used the PostDelayed bit. I will review, thanks for the report.

ChaseFlorell avatar Mar 20 '18 12:03 ChaseFlorell

k k

K •

  1. Kk7k K

Kkkk

K o O K

arun6202 avatar Apr 09 '18 06:04 arun6202