Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8b1107d2 authored by Robin Lee's avatar Robin Lee
Browse files

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
parent e3ad82a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment