Keyboard navigation for CompanionDeviceTestActivity
Problem:
1) Open CTS Verifier > Companion Device Test > Go
2) Click some items
3) Find that they can't open and so the test is failed.
Root cause:
- Pressing the view triggers the OnItemClickListener instead of the
OnClickListener because the container is an AdapterView and that is
how AdapterView handles keyboard input.
Solution:
- Add a ListView setOnItemClickListener function to handle the keyboard
actions. Remove the original touch listener because this is not
needed any more.
Test: make dist
Test: manual (go through CTS Verifier)
Bug: 161863859
Test: manualTests#com.android.cts.verifier.companion.CompanionDeviceTestActivity
Change-Id: Idf8867afae35f243c44ee726e444febb3209d357
Loading
Please register or sign in to comment