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

Skip to content
Commit 4addccb4 authored by Omar Abdelmonem's avatar Omar Abdelmonem
Browse files

Handle multiple touchpads in TouchpadDebugViewController

Add logic to the TouchpadDebugViewController to be able to handle,
multiple touchpad connection/disconnection, to avoid a state of
having a touchpad connected but no View after original touchpad
disconnection.
Made sure that the View's colour only changes when a
HardwareProperty of the same ID is received.

Bug: 363979581

Test: Updated unit tests to test sending HardwareProperties with
different deviceIds to the view and verify that only the one with
the same deviceId affected the View.
Manual testing by connecting multiple touchpads and verifying the
result of disconnecting the first or second touchpad and making
sure we get the desired behaviour.
Flag: com.android.hardware.input.touchpad_visualizer

Change-Id: I9dc8c53ed48e53002d9f13bed250d1a65ddbf20a
parent 1c218092
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment